Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 904 for _close (0.04 sec)

  1. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            assertEquals(threadCount * operationsPerThread, successCount.get());
            assertTrue(overallTimeMs < 1000, "Operations should complete quickly without lock contention");
    
            pool.close();
        }
    
        /**
         * Test buffer cache performance with concurrent operations
         */
        @Test
        public void testBufferCachePerformance() throws Exception {
            int threadCount = 10;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            os.write(testData);
            os.flush();
            os.close();
    
            // Assert
            // Verify that data was written to the underlying stream through CacheStream
            verify(initialOutputStream).write(testData);
            verify(initialOutputStream).flush();
            verify(initialOutputStream).close();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

        url =
          serverIpv4
            .url("/")
            .newBuilder()
            .host("localhost")
            .build()
      }
    
      @AfterEach
      internal fun tearDown() {
        serverIpv4.close()
        serverIpv6.close()
      }
    
      @Test
      fun callIpv6FirstEvenWhenIpv4IpIsListedFirst() {
        dnsResults =
          listOf(
            localhostIpv4,
            localhostIpv6,
          )
        serverIpv4.enqueue(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. cmd/metacache-stream_test.go

    	w := newMetacacheWriter(&buf, 1<<20)
    	defer w.Close()
    	err := r.readFn(func(object metaCacheEntry) bool {
    		err := w.write(object)
    		if err != nil {
    			t.Fatal(err)
    		}
    		return true
    	})
    	r.Close()
    	if err != io.EOF {
    		t.Fatal(err)
    	}
    	err = w.Close()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	r = newMetacacheReader(&buf)
    	defer r.Close()
    	names, err := r.readNames(-1)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 15K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

                                return new FileInputStream(testFile);
                            }
    
                            @Override
                            public void close() throws IOException {
                                // Nothing to close
                            }
                        };
                    } catch (Exception e) {
                        throw new RuntimeException(e);
                    }
                }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

                    h.close();
                }
            } catch (final SmbException se) {
                throw seToIoe(se);
            } finally {
                this.tmp = null;
                this.handle = null;
                if (this.unsharedFile) {
                    this.file.close();
                }
            }
        }
    
        /**
         * Reads a byte of data from this input stream.
         *
         * @throws IOException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/witness/WitnessClientTest.java

            client.close();
        }
    
        @Test
        void testGetWitnessServer() throws Exception {
            WitnessRpcClient mockRpc = mock(WitnessRpcClient.class);
            TestWitnessClient client = new TestWitnessClient(witnessServer, mockContext, mockRpc);
    
            assertEquals(witnessServer, client.getWitnessServer());
    
            client.close();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/com/SmbComClose.java

    import jcifs.internal.Request;
    import jcifs.internal.smb1.SMB1SigningDigest;
    import jcifs.internal.smb1.ServerMessageBlock;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 Close file request message.
     *
     * This command is used to close a file that was previously opened
     * with an Open command.
     */
    public class SmbComClose extends ServerMessageBlock implements Request<SmbComBlankResponse> {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

              @Override
              public void close() {
                throw new AssertionError(
                    "ForwardingExecutorService should have used the default method"
                        + " ExecutorService.close() (which would forward to methods like shutdown() on"
                        + " the delegate) instead of forwarding to delegate.close()");
              }
            };
        ExecutorService wrapper =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 18:45:52 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/transport/Transport.java

                    final boolean timeout = ex instanceof SocketTimeoutException || msg != null && msg.equals("Read timed out");
                    final boolean closed = msg != null && msg.equals("Socket closed");
    
                    if (closed) {
                        log.trace("Remote closed connection");
                    } else if (timeout) {
                        log.debug("socket timeout in non peek state", ex);
                    } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
Back to top