Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 472 for reconnection (0.25 sec)

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

            val connection =
              Http2Connection
                .Builder(false, taskRunner)
                .socket(socket, socket.javaNetSocket.remoteSocketAddress.toString())
                .listener(http2SocketHandler)
                .build()
            connection.start()
            openConnections.add(connection)
            openClientSockets.remove(socket.javaNetSocket)
            return
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  2. docs/features/connections.md

    ### [Connections](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-connection/)
    
    When you request a URL with OkHttp, here's what it does:
    
     1. It uses the URL and configured OkHttpClient to create an **address**. This address specifies how we'll connect to the webserver.
     2. It attempts to retrieve a connection with that address from the **connection pool**.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Feb 21 03:33:59 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt

        }
      }
    
      @Test fun headersEquals() {
        val headers1 =
          Headers
            .Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
        val headers2 =
          Headers
            .Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
        assertThat(headers2).isEqualTo(headers1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/curl/CurlRequest.java

            final HttpURLConnection connection = (HttpURLConnection) (proxy != null ? u.openConnection(proxy) : u.openConnection());
            if (sslSocketFactory != null && connection instanceof HttpsURLConnection) {
                ((HttpsURLConnection) connection).setSSLSocketFactory(sslSocketFactory);
            }
            return connection;
        }
    
        /**
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  5. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

                clientTestRule.wrap(
                  object : EventListener() {
                    override fun connectionAcquired(
                      call: Call,
                      connection: Connection,
                    ) {
                      socketClass = connection.socket().javaClass.name
                    }
                  },
                ),
              ).build()
    
          val response = client.newCall(request).execute()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

            Request
              .Builder()
              .url(server.url("/"))
              .header("Connection", "upgrade")
              .post("Hello".toRequestBody())
              .build()
          }
        assertThat(e).hasMessage("expected a null request body with 'Connection: upgrade'")
      }
    
      private fun enableTls(vararg protocols: Protocol) {
        client =
          client
            .newBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/ConnectionShutdownException.kt

     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import java.io.IOException
    
    /**
     * Thrown when an HTTP/2 connection is shutdown (either explicitly or if the peer has sent a GOAWAY
     * frame) and an attempt is made to use the connection.
     */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 875 bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/rdma/disni/DisniRdmaConnection.java

                // endpoint.connect(remoteAddress, 1000);  // 1 second timeout
    
                state = RdmaConnectionState.CONNECTED;
                log.debug("DiSNI RDMA connection established to {}", remoteAddress);
    
            } catch (Exception e) {
                state = RdmaConnectionState.ERROR;
                throw new IOException("DiSNI RDMA connection failed", e);
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ForceConnectRoutePlanner.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    /**
     * A RoutePlanner that will always establish a new connection, ignoring any connection pooling
     */
    class ForceConnectRoutePlanner(
      private val delegate: RealRoutePlanner,
    ) : RoutePlanner by delegate {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 937 bytes
    - Viewed (0)
  10. okhttp-urlconnection/build.gradle.kts

    }
    
    project.applyOsgi(
      "Fragment-Host: com.squareup.okhttp3; bundle-version=\"\${range;[==,+);\${version_cleanup;${projects.okhttp.version}}}\"",
      "Automatic-Module-Name: okhttp3.urlconnection",
      "Bundle-SymbolicName: com.squareup.okhttp3.urlconnection",
      "-removeheaders: Private-Package"
    )
    
    dependencies {
      "friendsApi"(projects.okhttp)
      api(projects.okhttpJavaNetCookiejar)
      compileOnly(libs.animalsniffer.annotations)
    }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 14 00:51:50 UTC 2025
    - 737 bytes
    - Viewed (0)
Back to top