- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for connectTimeout (1.33 sec)
-
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
fun createClient(): Call.Factory { val builder = OkHttpClient.Builder() builder.followSslRedirects(followRedirects) if (connectTimeout != DEFAULT_TIMEOUT) { builder.connectTimeout(connectTimeout.toLong(), SECONDS) } if (readTimeout != DEFAULT_TIMEOUT) { builder.readTimeout(readTimeout.toLong(), SECONDS) } if (callTimeout != DEFAULT_TIMEOUT) {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Jul 17 05:56:35 UTC 2025 - 25.8K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt
).filter { it.isSupported() } @Throws(IOException::class) override fun connectSocket( socket: Socket, address: InetSocketAddress, connectTimeout: Int, ) { try { socket.connect(address, connectTimeout) } catch (e: ClassCastException) { // On android 8.0, socket.connect throws a ClassCastException due to a bug // see https://issuetracker.google.com/issues/63649622Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 10 05:19:46 UTC 2025 - 6.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java
*/ public int getConnectTimeout() { return connectTimeout; } /** * Sets the connection timeout in milliseconds. * * @param connectTimeout The connection timeout */ public void setConnectTimeout(final int connectTimeout) { this.connectTimeout = connectTimeout; } /** * Gets the data timeout in milliseconds.Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 40K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/storage/StorageClient.java
} final long connectTimeout = getInitParameter("connectTimeout", (long) 10000, Long.class); final long writeTimeout = getInitParameter("writeTimeout", (long) 10000, Long.class); final long readTimeout = getInitParameter("readTimeout", (long) 10000, Long.class); minioClient.setTimeout(connectTimeout, writeTimeout, readTimeout); isInit = true;Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 20K bytes - Viewed (2) -
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
@Test fun timeoutValidRange() { val builder = OkHttpClient.Builder() try { builder.callTimeout(Duration.ofNanos(1)) } catch (ignored: IllegalArgumentException) { } try { builder.connectTimeout(Duration.ofNanos(1)) } catch (ignored: IllegalArgumentException) { } try { builder.writeTimeout(Duration.ofNanos(1)) } catch (ignored: IllegalArgumentException) { } try {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13.4K bytes - Viewed (1) -
samples/guide/src/main/java/okhttp3/recipes/ConfigureTimeouts.java
import okhttp3.Response; public final class ConfigureTimeouts { private final OkHttpClient client; public ConfigureTimeouts() throws Exception { client = new OkHttpClient.Builder() .connectTimeout(5, TimeUnit.SECONDS) .writeTimeout(5, TimeUnit.SECONDS) .readTimeout(5, TimeUnit.SECONDS) .callTimeout(10, TimeUnit.SECONDS) .build(); } public void run() throws Exception {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Sep 28 18:00:26 UTC 2019 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/ConfigureTimeouts.kt
import java.util.concurrent.TimeUnit import okhttp3.OkHttpClient import okhttp3.Request class ConfigureTimeouts { private val client: OkHttpClient = OkHttpClient .Builder() .connectTimeout(5, TimeUnit.SECONDS) .writeTimeout(5, TimeUnit.SECONDS) .readTimeout(5, TimeUnit.SECONDS) .callTimeout(10, TimeUnit.SECONDS) .build() fun run() { val request = RequestRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
* * The connect timeout is applied when connecting a TCP socket to the target host. The default * value is 10 seconds. */ fun connectTimeout( timeout: Long, unit: TimeUnit, ) = apply { connectTimeout = checkDuration("timeout", timeout, unit) } /** * Sets the default connect timeout for new connections. A value of 0 means no timeout,Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Oct 07 21:55:03 UTC 2025 - 51.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt
listOf() } } @Throws(IOException::class) open fun connectSocket( socket: Socket, address: InetSocketAddress, connectTimeout: Int, ) { socket.connect(address, connectTimeout) } open fun log( message: String, level: Int = INFO, t: Throwable? = null, ) { val logLevel = if (level == WARN) Level.WARNING else Level.INFO
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 8.1K bytes - Viewed (0)