Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 865 for closer (1.34 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/SocketEffect.kt

       * after the response and will close the connection when the client's socket is exhausted.
       *
       * On HTTP/1 this closes the socket.
       */
      public object ShutdownConnection : SocketEffect
    
      /**
       * On HTTP/2 this will send the error code on the stream.
       *
       * On HTTP/1 this closes the socket.
       */
      public class CloseStream(
        public val http2ErrorCode: Int = 0,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ResponseJvmTest.kt

       * most [BufferedSource] instances, but not of [Buffer].
       */
      private fun responseBody(content: String): ResponseBody {
        val data = Buffer().writeUtf8(content)
        val source: Source =
          object : Source {
            var closed = false
    
            override fun close() {
              closed = true
            }
    
            override fun read(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                    this.signingKey = null;
                }
                this.closed = true;
            } finally {
                this.signingLock.unlock();
            }
        }
    
        /**
         * Close the signing digest and securely wipe keys
         */
        @Override
        public void close() {
            secureWipeKey();
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // Close and verify subsequent calls throw
            handle.close();
            CIFSException ex1 = assertThrows(CIFSException.class, handle::getInput, "getInput after close must throw");
            assertTrue(ex1.getMessage().contains("Already closed"));
            CIFSException ex2 = assertThrows(CIFSException.class, handle::getOutput, "getOutput after close must throw");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

            throw complete(e)!!
          }
        }
    
        @Throws(IOException::class)
        override fun close() {
          if (closed) return
          closed = true
          if (contentLength != -1L && bytesReceived != contentLength) {
            throw ProtocolException("unexpected end of stream")
          }
          try {
            super.close()
            complete(null)
          } catch (e: IOException) {
            throw complete(e)!!
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

       * - The first request "wins the race".
       * - The second request discovers it "lost the race" and closes the connection it just opened.
       * - The second request uses the coalesced connection from request1.
       * - The coalesced connection is violently closed after servicing the first request.
       * - The second request discovers the coalesced connection is unhealthy just after acquiring it.
       */
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. cmd/mrf.go

    func (m *mrfState) shutdown() {
    	atomic.StoreInt32(&m.closing, 1)
    	m.wg.Wait()
    	close(m.opCh)
    	atomic.StoreInt32(&m.closed, 1)
    
    	if len(m.opCh) > 0 {
    		healingLogEvent(context.Background(), "Saving MRF healing data (%d entries)", len(m.opCh))
    	}
    
    	newReader := func() io.ReadCloser {
    		r, w := io.Pipe()
    		go func() {
    			// Initialize MRF meta header.
    			var data [4]byte
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/CharSinkTest.java

        assertEquals(STRING, sink.getString());
      }
    
      public void testWriteFromStream_doesNotCloseThatStream() throws IOException {
        TestReader in = new TestReader();
        assertFalse(in.closed());
        sink.writeFrom(in);
        assertFalse(in.closed());
      }
    
      public void testWriteLines_withSpecificSeparator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz"), "\n");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComFindClose2.java

    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 Find Close2 request message.
     *
     * This command is used to close a search handle that was
     * opened by a Trans2 Find First2 request.
     */
    public class SmbComFindClose2 extends ServerMessageBlock {
    
        private final int sid;
    
        /**
         * Creates a new SMB1 find close request to close a search handle.
         *
         * @param config the CIFS configuration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/create/Smb2CloseRequest.java

        private final String fileName;
        private int closeFlags;
    
        /**
         * Constructs a close request with file ID and name
         *
         * @param config
         *            The configuration to use
         * @param fileId
         *            The file ID to close
         * @param fileName
         *            The name of the file being closed
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top