Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,515 for connection (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/Connection.kt

     */
    interface Connection {
      /** Returns the route used by this connection. */
      fun route(): Route
    
      /**
       * Returns the socket that this connection is using. Returns an
       * [SSL socket][javax.net.ssl.SSLSocket] if this connection is HTTPS. If this is an HTTP/2
       * connection the socket may be shared by multiple concurrent calls.
       */
      fun socket(): Socket
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    }
    
    // String returns a string representation of the connection.
    func (c *Connection) String() string {
    	return fmt.Sprintf("%s->%s", c.Local, c.Remote)
    }
    
    // StringReverse returns a string representation of the reverse connection.
    func (c *Connection) StringReverse() string {
    	return fmt.Sprintf("%s->%s", c.Remote, c.Local)
    }
    
    // State is a connection state.
    type State uint32
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  3. internal/grid/connection_test.go

    	// Killing should cancel the context on the request.
    	<-gotCall
    }
    
    func dummyRequestValidate(r *http.Request) error {
    	return nil
    }
    
    func TestShouldConnect(t *testing.T) {
    	var c Connection
    	var cReverse Connection
    	hosts := []string{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}
    	for x := range hosts {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          }
        }
        return null
      }
    
      fun put(connection: RealConnection) {
        connection.lock.assertHeld()
    
        connections.add(connection)
    //    connection.queueEvent { connectionListener.connectEnd(connection) }
        scheduleCloser()
      }
    
      /**
       * Notify this pool that [connection] has become idle. Returns true if the connection has been
       * removed from the pool and should be closed.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  5. internal/grid/README.md

    A **Manager** is used to manage all incoming and outgoing connections to a server.
    
    On startup all remote servers must be specified. 
    From that individual connections will be spawned to each remote server, 
    or incoming requests will be hooked up to the appropriate connection.
    
    To get a connection to a specific server, use `Manager.Connection(host)` to get a connection to the specified host.
    From this connection individual requests can be made.
    
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

       * - Both request discover no existing connection. They both make a connection.
       * - 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.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     *
     *  4. If there's no existing connection, make a list of routes (which may require blocking DNS
     *     lookups) and attempt a new connection them. When failures occur, retries iterate the list of
     *     available routes.
     *
     * If the pool gains an eligible connection while DNS, TCP, or TLS work is in flight, this finder
     * will prefer pooled connections. Only pooled HTTP/2 connections are used for such de-duplication.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

      }
    
      /**
       * Return the route from [connection] if it should be retried, even if the connection itself is
       * unhealthy. The biggest gotcha here is that we shouldn't reuse routes from coalesced
       * connections.
       */
      private fun retryRoute(connection: RealConnection): Route? {
        return connection.withLock {
          when {
            connection.routeFailureCount != 0 -> null
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  9. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                                        pool connections.
                                      type: string
                                    maxConcurrentStreams:
                                      description: The maximum number of concurrent streams
                                        allowed for a peer on one HTTP/2 connection.
                                      format: int32
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 18:46:49 GMT 2024
    - 570.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

    import okhttp3.internal.ws.RealWebSocket
    import okio.BufferedSink
    import okio.BufferedSource
    
    /**
     * A connection to a remote web server capable of carrying 1 or more concurrent streams.
     *
     * Connections are shared in a connection pool. Accesses to the connection's state must be guarded
     * by holding a lock on the connection.
     */
    class RealConnection(
      val taskRunner: TaskRunner,
      val connectionPool: RealConnectionPool,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top