Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 486 for timeout (0.18 sec)

  1. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

    import java.net.Socket
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.internal.EMPTY_HEADERS
    import okio.Buffer
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    
    @Timeout(30)
    class RecordedRequestTest {
      private val headers: Headers = EMPTY_HEADERS
    
      @Test fun testIPv4() {
        val socket =
          FakeSocket(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

      private fun readHeader() {
        if (closed) throw IOException("closed")
    
        // Disable the timeout to read the first byte of a new frame.
        val b0: Int
        val timeoutBefore = source.timeout().timeoutNanos()
        source.timeout().clearTimeout()
        try {
          b0 = source.readByte() and 0xff
        } finally {
          source.timeout().timeout(timeoutBefore, TimeUnit.NANOSECONDS)
        }
    
        opcode = b0 and B0_MASK_OPCODE
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  3. doc/next/6-stdlib/99-minor/net/63116.md

    The [DNSError] type now wraps errors caused by timeouts or cancellation.
    For example, `errors.Is(someDNSErr, context.DeadlineExceedeed)`
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Apr 24 13:37:36 GMT 2024
    - 198 bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        /**
         * Asserts that at least {@code timeout} has passed but the expected completion time has not.
         */
        void assertCompletionNotExpected(long timeout) {
          Preconditions.checkArgument(timeout < expectedCompletionWaitMillis);
          assertAtLeastTimePassed(stopwatch, timeout);
          assertTimeNotPassed(stopwatch, expectedCompletionWaitMillis);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 30.9K bytes
    - Viewed (0)
  5. cmd/update.go

    }
    
    func getUpdateTransport(timeout time.Duration) http.RoundTripper {
    	var updateTransport http.RoundTripper = &http.Transport{
    		Proxy:                 http.ProxyFromEnvironment,
    		DialContext:           xhttp.NewInternodeDialContext(timeout, globalTCPOptions),
    		IdleConnTimeout:       timeout,
    		TLSHandshakeTimeout:   timeout,
    		ExpectContinueTimeout: timeout,
    		TLSClientConfig: &tls.Config{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/NameServiceClientImpl.java

            }
            return this.nextNameTrnId;
        }
    
    
        void ensureOpen ( int timeout ) throws IOException {
            this.closeTimeout = 0;
            if ( this.transportContext.getConfig().getNetbiosSoTimeout() != 0 ) {
                this.closeTimeout = Math.max(this.transportContext.getConfig().getNetbiosSoTimeout(), timeout);
            }
            // If socket is still good, the new closeTimeout will
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java

      }
    
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public V get(long timeout, TimeUnit unit)
          throws TimeoutException, InterruptedException, ExecutionException {
    
        long timeoutNanos = unit.toNanos(timeout);
        if (timeoutNanos <= OverflowAvoidingLockSupport.MAX_NANOSECONDS_THRESHOLD) {
          return super.get(timeout, unit);
        }
        // Waiting 68 years should be enough for any program.
        return super.get(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/common/performance-test-extensions.kt

    import jetbrains.buildServer.configs.kotlin.buildSteps.script
    
    fun BuildType.applyPerformanceTestSettings(os: Os = Os.LINUX, arch: Arch = Arch.AMD64, timeout: Int = 30) {
        applyDefaultSettings(os = os, arch = arch, timeout = timeout)
        artifactRules = """
            build/report-*-performance-tests.zip => .
            build/report-*-performance.zip => $hiddenArtifactDestination
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu Apr 04 07:21:42 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

              // No client for CONNECT tunnels:
              client = null,
              carrier = this,
              source = source,
              sink = sink,
            )
          source.timeout().timeout(readTimeoutMillis.toLong(), TimeUnit.MILLISECONDS)
          sink.timeout().timeout(writeTimeoutMillis.toLong(), TimeUnit.MILLISECONDS)
          tunnelCodec.writeRequest(nextRequest.headers, requestLine)
          tunnelCodec.finishRequest()
          val response =
    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)
  10. src/main/java/jcifs/smb1/netbios/NbtSocket.java

            if( calledName == null ) {
                this.calledName = address.hostName;
            } else {
                this.calledName = new Name( calledName, 0x20, null );
            }
            soTimeout = Config.getInt( "jcifs.smb1.netbios.soTimeout", DEFAULT_SO_TIMEOUT );
            connect();
        }
    
        public NbtAddress getNbtAddress() {
            return address;
        }
        public InputStream getInputStream() throws IOException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 4.8K bytes
    - Viewed (0)
Back to top