Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for readTimeout (0.08 sec)

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

      fun failedCallEventSequence() {
        server!!.enqueue(
          MockResponse.Builder()
            .headersDelay(2, TimeUnit.SECONDS)
            .build(),
        )
        client =
          client.newBuilder()
            .readTimeout(Duration.ofMillis(250))
            .build()
        val call =
          client.newCall(
            Request.Builder()
              .url(server!!.url("/"))
              .build(),
          )
        assertFailsWith<IOException> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/http/NtlmHttpURLConnection.java

                        0);
                }
                return message;
            }
        }
    
    
        private void reconnect () throws IOException {
            int readTimeout = getReadTimeout();
            int connectTimeout = getConnectTimeout();
    
            HostnameVerifier hv = null;
            SSLSocketFactory ssf = null;
            if ( this.connection instanceof HttpsURLConnection ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 25.5K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                            if (httpConfigurationAll != null) {
                                requestTimeoutXml = httpConfigurationAll.getChild("readTimeout", false);
                                if (requestTimeoutXml != null) {
                                    requestTimeout = Integer.parseInt(requestTimeoutXml.getValue());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

        )
    
        // First request: time out after 1s.
        client =
          client.newBuilder()
            .readTimeout(Duration.ofSeconds(1))
            .build()
        executeSynchronously("/a").assertBody("abc")
    
        // Second request: time out after 250ms.
        client =
          client.newBuilder()
            .readTimeout(Duration.ofMillis(250))
            .build()
        val request = Request.Builder().url(server.url("/b")).build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

      private val serverListener = WebSocketRecorder("server")
      private val random = Random(0)
      private var client =
        clientTestRule.newClientBuilder()
          .writeTimeout(Duration.ofMillis(500))
          .readTimeout(Duration.ofMillis(500))
          .addInterceptor(
            Interceptor { chain: Interceptor.Chain ->
              val response = chain.proceed(chain.request())
              // Ensure application interceptors never see a null body.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. internal/http/listener_test.go

    	return nonLoopBackIP
    }
    
    func TestNewHTTPListener(t *testing.T) {
    	testCases := []struct {
    		serverAddrs         []string
    		tcpKeepAliveTimeout time.Duration
    		readTimeout         time.Duration
    		writeTimeout        time.Duration
    		expectedListenErrs  []bool
    	}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/storage/StorageClient.java

            }
    
            minioClient.setTimeout(getInitParameter("connectTimeout", (long) 10000, Long.class),
                    getInitParameter("writeTimeout", (long) 10000, Long.class), getInitParameter("readTimeout", (long) 10000, Long.class));
        }
    
        protected boolean bucketExists(final String name) {
            try {
                final BucketExistsArgs args = BucketExistsArgs.builder().bucket(name).build();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. internal/logger/target/kafka/kafka.go

    	sconfig.Producer.Return.Successes = true
    	sconfig.Producer.Return.Errors = true
    	sconfig.Producer.RequiredAcks = 1
    	sconfig.Producer.Timeout = (10 * time.Second)
    	sconfig.Net.ReadTimeout = (10 * time.Second)
    	sconfig.Net.DialTimeout = (10 * time.Second)
    	sconfig.Net.WriteTimeout = (10 * time.Second)
    	sconfig.Metadata.Retry.Max = 1
    	sconfig.Metadata.Retry.Backoff = (10 * time.Second)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/InterceptorTest.kt

          Interceptor { chain: Interceptor.Chain ->
            assertThat(chain.readTimeoutMillis()).isEqualTo(100)
            chain.proceed(chain.request())
          }
        client =
          client.newBuilder()
            .readTimeout(Duration.ofSeconds(5))
            .addInterceptor(interceptor1)
            .addInterceptor(interceptor2)
            .build()
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.acceptFrame() // RST_STREAM
        peer.play()
    
        // Play it back.
        val connection = connect(peer)
        val stream = connection.newStream(headerEntries("b", "banana"), false)
        stream.readTimeout().timeout(500, TimeUnit.MILLISECONDS)
        val startNanos = System.nanoTime()
        assertFailsWith<InterruptedIOException> {
          stream.takeHeaders()
        }
        val elapsedNanos = System.nanoTime() - startNanos
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
Back to top