Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 188 for closing (0.2 sec)

  1. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java

                throw new IOException("TCP RDMA write failed", e);
            }
        }
    
        @Override
        public void close() throws IOException {
            state = RdmaConnectionState.CLOSING;
    
            try {
                if (socketChannel != null) {
                    socketChannel.close();
                }
            } finally {
                state = RdmaConnectionState.CLOSED;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            assertTrue(s.contains(",flags=0x00"), "toString should include flags in hex");
            assertTrue(s.endsWith("]"), "toString should end with closing bracket");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

            MsrpcSamrCloseHandle capturedRpc = closeHandleCaptor.getValue();
            assertNotNull(capturedRpc);
            assertEquals(handle, capturedRpc.handle); // Ensure the handle itself is passed for closing
        }
    
        @Test
        void close_shouldDoNothingIfAlreadyClosed() throws IOException {
            // Arrange
            int access = 0x01;
            // Simulate successful open
            doAnswer(invocation -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

       * window will block.
       *
       * Zero [byteCount] writes are not subject to flow control and will not block. The only use case
       * for zero [byteCount] is closing a flushed output stream.
       */
      @Throws(IOException::class)
      fun writeData(
        streamId: Int,
        outFinished: Boolean,
        buffer: Buffer?,
        byteCount: Long,
      ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertFalse(auth.isClosed());
    
            // Close the authenticator
            auth.close();
    
            // Verify it's closed
            assertTrue(auth.isClosed());
            // Cannot check password after closing as it now throws IllegalStateException
            // This is actually good security practice - closed authenticators cannot be accessed
    
            // Verify multiple closes don't cause issues
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            final SmbTreeHandleImpl t = this.tree;
            try {
                if (t != null && isValid()) {
                    if (log.isDebugEnabled()) {
                        log.debug("Closing file handle " + this);
                    }
    
                    if (t.isSMB2()) {
                        final Smb2CloseRequest req = new Smb2CloseRequest(this.cfg, this.fileId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  7. src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java

            /** Connection is fully established and ready for RDMA operations */
            ESTABLISHED,
            /** Connection encountered an error */
            ERROR,
            /** Connection is being closed */
            CLOSING,
            /** Connection is closed */
            CLOSED
        }
    
        /** Remote endpoint address */
        protected final InetSocketAddress remoteAddress;
        /** Local endpoint address */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            }
    
            @Test
            @DisplayName("read after close throws 'Bad file descriptor'")
            void readAfterCloseThrows() throws Exception {
                SmbFileInputStream in = newStream();
                // closing should null tmp; subsequent readDirect should fail
                in.close();
                IOException ex = assertThrows(IOException.class, () -> in.readDirect(new byte[8], 0, 4));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

     *
     * Note that [nextPart] will skip any unprocessed data from the preceding part. If the preceding
     * part is particularly large or if the underlying source is particularly slow, the [nextPart] call
     * may be slow!
     *
     * Closing a part **does not** close this multipart reader; callers must explicitly close this with
     * [close].
     *
     * [rfc_2046]: http://www.ietf.org/rfc/rfc2046.txt
     */
    class MultipartReader
      @Throws(IOException::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            // Consume the only element
            assertTrue(it.hasNext());
            assertSame(fe1, it.next());
            // After exception path, iterator should be exhausted
            assertFalse(it.hasNext());
    
            // Closing should send a single Smb2CloseRequest
            it.close();
            verify(tree).send(argThat((Request<?> r) -> r instanceof Smb2CloseRequest));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top