- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 1,168 for lose (0.03 sec)
-
internal/deadlineconn/deadlineconn_test.go
func TestBuffConnReadTimeout(t *testing.T) { l, err := net.Listen("tcp", "localhost:0") if err != nil { t.Fatalf("unable to create listener. %v", err) } defer l.Close() serverAddr := l.Addr().String() tcpListener, ok := l.(*net.TCPListener) if !ok { t.Fatalf("failed to assert to net.TCPListener") } var wg sync.WaitGroup wg.Add(1) go func() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Nov 05 18:09:21 UTC 2022 - 3K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java
StringWriter target = new StringWriter(2 * n); OutputStream encodingStream = encoding.encoding.encodingStream(target); encodingStream.write(encodingInputs[i & INPUTS_MASK]); encodingStream.close(); tmp += target.getBuffer().length(); } return tmp; } @Benchmark public int decodingStream(int reps) throws IOException { int tmp = 0; byte[] target = new byte[n];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3.2K bytes - Viewed (0) -
internal/store/batch_test.go
Limit: limit, Store: store, CommitTimeout: 5 * time.Minute, Log: func(ctx context.Context, err error, id string, errKind ...interface{}) { t.Log(err) }, }) defer batch.Close() for i := 0; i < int(limit); i++ { if err := batch.Add(testItem); err != nil { t.Fatalf("failed to add %v; %v", i, err) } } batchLen := batch.Len() if batchLen != int(limit) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/TransactNamedPipeOutputStream.java
this.pipe = pipe; this.dcePipe = ( pipe.pipeType & SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT ) == SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT; path = pipe.unc; } public void close() throws IOException { pipe.close(); } public void write( int b ) throws IOException { tmp[0] = (byte)b; write( tmp, 0, 1 ); } public void write( byte[] b ) throws IOException {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/SmbRandomAccess.java
* * @author mbechler * */ public interface SmbRandomAccess extends DataOutput, DataInput, AutoCloseable { /** * Close the file * * @throws SmbException */ @Override void close () throws SmbException; /** * Read a single byte from the current position * * @return read byte, -1 if EOF * @throws SmbException
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SID.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 26.6K bytes - Viewed (0) -
cni/pkg/nodeagent/podcgroupns.go
"k8s.io/apimachinery/pkg/types" "istio.io/istio/pkg/maps" "istio.io/istio/pkg/util/sets" ) type PodToNetns map[string]WorkloadInfo func (p PodToNetns) Close() { for _, wl := range p { wl.Netns.Close() } } type PodNetnsFinder interface { FindNetnsForPods(filter map[types.UID]*corev1.Pod) (PodToNetns, error) } type PodNetnsProcFinder struct { proc fs.FS }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Apr 12 21:47:31 UTC 2024 - 11K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
resumeKey = rkresp.getResumeKey(); // start with some reasonably safe defaults, the server will till us if it does not like it // can we resume this if we loose the file descriptor? int maxChunks = 256; int maxChunkSize = 1024 * 1024; int byteLimit = 16 * 1024 * 1024; boolean retry = false; do {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 10:52:42 UTC 2020 - 17.1K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
} else { var in *os.File if in, err = os.Open(inFilename); err != nil { return err } reader = in defer func() { if errClose := in.Close(); errClose != nil { log.Errorf("Error: close file from %s, %s", inFilename, errClose) // don't overwrite the previous error if err == nil { err = errClose } } }() }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 21K bytes - Viewed (0) -
src/main/java/jcifs/context/BaseContext.java
return this.defaultCredentials; } /** * {@inheritDoc} * * @see jcifs.CIFSContext#close() */ @Override public boolean close () throws CIFSException { boolean inUse = super.close(); inUse |= this.transportPool.close(); return inUse; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Nov 27 18:25:00 UTC 2022 - 5.3K bytes - Viewed (0)