Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 60 for doDisconnect (0.24 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

              suppressTlsFallbackClientSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .build()
        assertContent("abc", getResponse(newRequest("/")))
    
        // Give the server time to disconnect.
        Thread.sleep(500)
        assertContent("def", getResponse(newRequest("/")))
        val tlsVersions: Set<TlsVersion?> =
          EnumSet.of(
            TlsVersion.TLS_1_0,
            TlsVersion.TLS_1_2,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
        server.enqueue(MockResponse(body = "abc"))
        server.enqueue(MockResponse(body = "def"))
    
        // Disconnect before the stream is created. A connection is still established!
        val call1 = client.newCall(Request(server.url("/")))
        val response = call1.execute()
        call1.cancel()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  3. cmd/peer-rest-server.go

    	if !s.IsValid(w, r) {
    		s.writeErrorResponse(w, errors.New("invalid request"))
    		return
    	}
    
    	globalNetPerfRX.Connect()
    	defer globalNetPerfRX.Disconnect()
    
    	connectTime := time.Now()
    	ctx := newContext(r, w, "DevNull")
    	for {
    		n, err := io.CopyN(xioutil.Discard, r.Body, 128*humanize.KiByte)
    		atomic.AddUint64(&globalNetPerfRX.RX, uint64(n))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/EventListenerTest.kt

      }
    
      @Test
      fun responseBodyFailHttp() {
        responseBodyFail(Protocol.HTTP_1_1)
      }
    
      private fun responseBodyFail(expectedProtocol: Protocol?) {
        // Use a 2 MiB body so the disconnect won't happen until the client has read some data.
        val responseBodySize = 2 * 1024 * 1024 // 2 MiB
        server.enqueue(
          MockResponse.Builder()
            .body(Buffer().write(ByteArray(responseBodySize)))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

      }
    
      @Test
      fun serverDisconnectsPrematurelyWithNoLengthHeaders() {
        // Intentionally empty. This case doesn't make sense because there's no
        // such thing as a premature disconnect when the disconnect itself
        // indicates the end of the data stream.
      }
    
      private fun testServerPrematureDisconnect(transferKind: TransferKind) {
        val mockResponse = MockResponse.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  6. cmd/metrics-v2.go

    		w.Header().Set("Content-Type", string(contentType))
    
    		enc := expfmt.NewEncoder(w, contentType)
    		for _, mf := range mfs {
    			if err := enc.Encode(mf); err != nil {
    				// client may disconnect for any reasons
    				// we do not have to log this.
    				return
    			}
    		}
    		if closer, ok := enc.(expfmt.Closer); ok {
    			closer.Close()
    		}
    	})
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_3x.md

    
    ## Version 3.6.0
    
    _2017-01-29_
    
     *  Fix: Don't crash with a "cache is closed" error when there is an error initializing the cache.
     *  Fix: Calling `disconnect()` on a connecting `HttpUrlConnection` could cause it to retry in an
        infinite loop! This regression was introduced in OkHttp 2.7.0.
     *  Fix: Drop cookies that contain ASCII NULL and other bad characters. Previously such cookies
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  8. api/go1.2.txt

    pkg syscall (windows-386), const XP1_CONNECT_DATA = 128
    pkg syscall (windows-386), const XP1_CONNECT_DATA ideal-int
    pkg syscall (windows-386), const XP1_DISCONNECT_DATA = 256
    pkg syscall (windows-386), const XP1_DISCONNECT_DATA ideal-int
    pkg syscall (windows-386), const XP1_EXPEDITED_DATA = 64
    pkg syscall (windows-386), const XP1_EXPEDITED_DATA ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  9. api/go1.txt

    pkg syscall (windows-386), const SidTypeUnknown ideal-int
    pkg syscall (windows-386), const SidTypeUser ideal-int
    pkg syscall (windows-386), const SidTypeWellKnownGroup ideal-int
    pkg syscall (windows-386), const TF_DISCONNECT ideal-int
    pkg syscall (windows-386), const TF_REUSE_SOCKET ideal-int
    pkg syscall (windows-386), const TF_USE_DEFAULT_WORKER ideal-int
    pkg syscall (windows-386), const TF_USE_KERNEL_APC ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
  10. api/go1.1.txt

    pkg syscall (windows-386), const SidTypeUnknown = 8
    pkg syscall (windows-386), const SidTypeUser = 1
    pkg syscall (windows-386), const SidTypeWellKnownGroup = 5
    pkg syscall (windows-386), const TF_DISCONNECT = 1
    pkg syscall (windows-386), const TF_REUSE_SOCKET = 2
    pkg syscall (windows-386), const TF_USE_DEFAULT_WORKER = 0
    pkg syscall (windows-386), const TF_USE_KERNEL_APC = 32
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
Back to top