Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 358 for contention (0.4 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt

    import java.util.concurrent.SynchronousQueue
    import java.util.concurrent.ThreadPoolExecutor
    import java.util.concurrent.TimeUnit
    import okhttp3.internal.assertLockNotHeld
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.connection.RealCall.AsyncCall
    import okhttp3.internal.okHttpName
    import okhttp3.internal.threadFactory
    import okhttp3.internal.unmodifiable
    
    /**
     * Policy on when async requests are executed.
     *
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 14:16:22 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

        println("Proxy Server 1 is ${server1.socketAddress}")
        println("Proxy Server 2 is ${server2.socketAddress}")
    
        // Since myproxy:8008 won't resolve, redirect with DNS to proxyServer1
        // Then redirect socket connection to server1
        dns["myproxy"] = listOf(proxyServer1)
        socketFactory[proxyServer1] = server1.socketAddress
    
        client = client.newBuilder().proxySelector(proxySelector).build()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 10 15:25:06 GMT 2026
    - 11.8K bytes
    - Click Count (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt

    import java.net.InetAddress
    import java.net.Socket
    import java.util.concurrent.CountDownLatch
    import javax.net.ssl.SSLSocket
    import okhttp3.Handshake
    import okhttp3.Handshake.Companion.handshake
    import okhttp3.internal.connection.BufferedSocket
    import okhttp3.internal.platform.Platform
    import okio.BufferedSink
    import okio.BufferedSource
    import okio.ForwardingSink
    import okio.ForwardingSource
    import okio.asOkioSocket
    import okio.buffer
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/SocksProxyTest.kt

        val request2 = Request.Builder().url(server.url("/")).build()
        val response2 = client.newCall(request2).execute()
        assertThat(response2.body.string()).isEqualTo("def")
    
        // The HTTP calls should share a single connection.
        assertThat(socksProxy.connectionCount()).isEqualTo(1)
      }
    
      @Test
      fun proxySelector() {
        server.enqueue(MockResponse.Builder().body("abc").build())
        val proxySelector: ProxySelector =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/FallbackTestClientSocketFactory.kt

            }
          }
          delegate!!.enabledCipherSuites = enabledCipherSuites.toTypedArray<String>()
        }
      }
    
      companion object {
        /**
         * The cipher suite used during TLS connection fallback to indicate a fallback. See
         * https://tools.ietf.org/html/draft-ietf-tls-downgrade-scsv-00
         */
        const val TLS_FALLBACK_SCSV = "TLS_FALLBACK_SCSV"
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 2K bytes
    - Click Count (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTaskWithKotlin.java

    @CacheableTask
    public abstract class JapicmpTaskWithKotlin extends JapicmpTask {
    
        public JapicmpTaskWithKotlin() {
            super();
            addKotlinCompilerToJapicmpClasspath();
            getMaxWorkerHeap().convention("1g");
        }
    
        // it's easier to do this via reflection than to copy the whole task
        private void addKotlinCompilerToJapicmpClasspath() {
            try {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jan 19 11:30:48 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

          }
        }
    
        if (userRequest.header("Host") == null) {
          requestBuilder.header("Host", userRequest.url.toHostHeader())
        }
    
        if (userRequest.header("Connection") == null) {
          requestBuilder.header("Connection", "Keep-Alive")
        }
    
        // If we add an "Accept-Encoding: gzip" header field we're responsible for also decompressing
        // the transfer stream.
        var transparentGzip = false
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.internal.DoubleInetAddressDns
    import okhttp3.internal.connection.RealConnectionPool.Companion.get
    import okhttp3.testing.Flaky
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.internal.TlsUtil.localhost
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 18:33:48 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/PushObserver.kt

     * correlated by stream ID.
     *
     *  * [onRequest]
     *  * [onHeaders] (unless canceled)
     *  * [onData] (optional sequence of data frames)
     *
     * As a stream ID is scoped to a single HTTP/2 connection, implementations which target multiple
     * connections should expect repetition of stream IDs.
     *
     * Return true to request cancellation of a pushed stream.  Note that this does not guarantee
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/SocketEffect.kt

        public val shutdownOutput: Boolean = false,
      ) : SocketEffect
    
      /**
       * On HTTP/2, send a [GOAWAY frame](https://tools.ietf.org/html/rfc7540#section-6.8) immediately
       * 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.
       *
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 1.6K bytes
    - Click Count (0)
Back to Top