- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 846 for socket (0.15 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt
inflater.close() assertFailsWith<Exception> { inflater.inflate("f240e30300".decodeHex()) } } /** * Test for an [EOFException] caused by mishandling of fragmented buffers in web socket * compression. https://github.com/square/okhttp/issues/5965 */ @Test fun `inflate golden value in buffer that has been fragmented`() { val inflater = MessageInflater(false)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt
object : EventListener() { override fun connectionAcquired( call: Call, connection: Connection, ) { val sslSocket = connection.socket() as SSLSocket sessionIds.add( sslSocket.session.id .toByteString() .hex(), ) } },
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6K bytes - Viewed (1) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
.assertFailure("canceled", "Canceled", "Socket closed", "Socket is closed") } @Test fun cancelAll() { val call = client.newCall(Request(server.url("/"))) call.enqueue(callback) client.dispatcher.cancelAll() callback .await(server.url("/")) .assertFailure("canceled", "Canceled", "Socket closed", "Socket is closed") } @Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
/** * Process the response without even attempting to reading the request body. For HTTP/2 this * will close the response stream after the response body or trailers. For HTTP/1 this will * close the socket after the response body or trailers. */ public fun doNotReadRequestBody(): Builder = apply { doNotReadRequestBody = true onResponseEnd = CloseStream(ErrorCode.NO_ERROR.httpCode)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 17.8K bytes - Viewed (0) -
src/main/java/jcifs/Configuration.java
* * Property {@code jcifs.smb.client.soTimeout} (int, default 35000) * * @return socket timeout, in milliseconds */ int getSoTimeout(); /** * * Property {@code jcifs.smb.client.connTimeout} (int, default 35000) * * @return timeout for establishing a socket connection, in milliseconds */ int getConnTimeout(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 25.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
// RPC endpoint mapper port and connection timeout final int RPC_ENDPOINT_PORT = 135; final int RPC_CONNECT_TIMEOUT_MS = 5000; try (Socket socket = new Socket()) { socket.connect(new InetSocketAddress(address, RPC_ENDPOINT_PORT), RPC_CONNECT_TIMEOUT_MS); return true; } catch (IOException e) { return false; } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt
).build() dns["san.com"] = Dns.SYSTEM.lookup(server.hostName).subList(0, 1) assert200Http2Response(execute(url), server.hostName) // Simulate a stale connection in the pool. connection.get()!!.socket().close() val sanUrl = url.newBuilder().host("san.com").build() assert200Http2Response(execute(sanUrl), "san.com") assertThat(client.connectionPool.connectionCount()).isEqualTo(1) } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jun 19 11:44:16 UTC 2025 - 19.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CurlHelperTest.java
curlHelper.init(); // Verify NodeManager is initialized NodeManager nodeManager = getNodeManager(curlHelper); assertNotNull(nodeManager); // Verify SSL socket factory is not set SSLSocketFactory sslSocketFactory = getSSLSocketFactory(curlHelper); assertNull(sslSocketFactory); } public void test_init_withInvalidSSLCertificate() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 10.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
val responseA = client.newCall(requestA).execute() assertThat(responseA.body.string()).isEqualTo("a") assertThat(server.takeRequest().exchangeIndex).isEqualTo(0) // Give the socket a chance to become stale. connection!!.idleAtNs -= IDLE_CONNECTION_HEALTHY_NS Thread.sleep(250) val requestB = Request( url = server.url("/"),
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 8.4K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
} int octet = 0; for (int i = start; i < end; i++) { octet *= 10; int digit = Character.digit(ipString.charAt(i), 10); if (digit < 0) { throw new NumberFormatException(); } octet += digit; } if (octet > 255) { throw new NumberFormatException(); } return (byte) octet; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0)