Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for CONNECT (0.32 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        plan1.tcpConnectDelayNanos = 10.ms // Connect at time = 260 ms.
        plan1.tlsConnectDelayNanos = 10.ms // Connect at time = 270 ms.
        plan1.tlsConnectThrowable = IOException("boom!")
    
        val plan2 = plan1.createConnectTlsNextPlan()
        plan2.tcpConnectDelayNanos = 270.ms // Connect at time = 540 ms.
    
        val plan3 = plan0.createRetry()
        plan3.tcpConnectDelayNanos = 10.ms // Connect at time = 530 ms.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

      ): Http2Connection {
        peer.setClient(client)
        peer.sendFrame().settings(settings!!)
        peer.acceptFrame() // ACK
        peer.play()
        return connect(peer)
      }
    
      /** Builds a new connection to `peer` with settings acked.  */
      private fun connect(
        peer: MockHttp2Peer,
        pushObserver: PushObserver = IGNORE,
        listener: Http2Connection.Listener = Http2Connection.Listener.REFUSE_INCOMING_STREAMS,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

    import okio.BufferedSource
    import okio.buffer
    import okio.sink
    import okio.source
    
    /**
     * A single attempt to connect to a remote server, including these steps:
     *
     *  * [TCP handshake][connectSocket]
     *  * Optional [CONNECT tunnels][connectTunnel]. When using an HTTP proxy to reach an HTTPS server
     *    we must send a `CONNECT` request, and handle authorization challenges from the proxy.
     *  * Optional [TLS handshake][connectTls].
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

          }
    
          return when {
            tcpConnectThrowable != null -> {
              events += "plan $id TCP connect failed"
              ConnectResult(this, nextPlan = connectTcpNextPlan, throwable = tcpConnectThrowable)
            }
            canceled -> {
              events += "plan $id TCP connect canceled"
              ConnectResult(this, nextPlan = connectTcpNextPlan, throwable = IOException("canceled"))
            }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

        val connect = planConnect()
    
        // Now that we have a set of IP addresses, make another attempt at getting a connection from
        // the pool. We have a better chance of matching thanks to connection coalescing.
        val pooled2 = planReusePooledConnection(connect, connect.routes)
        if (pooled2 != null) return pooled2
    
        return connect
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/async-sql-encode-databases.md

    So, you will be able to see it all in the interactive API docs.
    
    ## Connect and disconnect
    
    * Create your `FastAPI` application.
    * Create event handlers to connect and disconnect from the database.
    
    ```Python hl_lines="42  45-47  50-52"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    ## Read notes
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  7. internal/config/identity/ldap/ldap.go

    )
    
    // LookupUserDN searches for the full DN and groups of a given short/login
    // username.
    func (l *Config) LookupUserDN(username string) (string, []string, error) {
    	conn, err := l.LDAP.Connect()
    	if err != nil {
    		return "", nil, err
    	}
    	defer conn.Close()
    
    	// Bind to the lookup user account
    	if err = l.LDAP.LookupBind(conn); err != nil {
    		return "", nil, err
    	}
    
    	// Lookup user DN
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  8. internal/http/dial_linux.go

    			_ = syscall.SetsockoptInt(fd, syscall.SOL_TCP, unix.TCP_FASTOPEN, 32*1024)
    
    			// Enable TCP fast connect
    			// TCPFastOpenConnect sets the underlying socket to use
    			// the TCP fast open connect. This feature is supported
    			// since Linux 4.11.
    			_ = syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, unix.TCP_FASTOPEN_CONNECT, 1)
    
    			// Enable TCP quick ACK, John Nagle says
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 4.3K bytes
    - Viewed (3)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteDatabase.kt

    import okhttp3.Route
    
    /**
     * A denylist of failed routes to avoid when creating a new connection to a target address. This is
     * used so that OkHttp can learn from its mistakes: if there was a failure attempting to connect to
     * a specific IP address or proxy server, that failure is remembered and alternate routes are
     * preferred.
     */
    class RouteDatabase {
      private val _failedRoutes = mutableSetOf<Route>()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. architecture/ambient/ztunnel.md

    This is not really so much a new protocol, but rather a name we came up with to refer to the expectations of clients and servers communicating in the mesh.
    
    HBONE is just a standard HTTP `CONNECT` tunnel, over mutual TLS with mesh (SPIFFE) certificates, on a well known port (15008).
    The target destination address is set in the `:authority` header, and additional headers can be included as well.
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 25 22:35:16 GMT 2024
    - 16.6K bytes
    - Viewed (0)
Back to top