- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for ForWebsocket (0.06 sec)
-
internal/http/listener.go
Trace func(msg string) // Trace when starting. IdleTimeout time.Duration // Incoming TCP read/write timeout } // ForWebsocket returns TCPOptions valid for websocket net.Conn func (t TCPOptions) ForWebsocket() TCPOptions { return TCPOptions{ UserTimeout: t.UserTimeout, Interface: t.Interface, SendBufSize: t.SendBufSize, RecvBufSize: t.RecvBufSize,
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 5.8K bytes - Viewed (0) -
cmd/grid.go
// useful over persistent connections. Dialer: grid.ConnectWS( grid.ContextDialer(xhttp.DialContextWithLookupHost(lookupHost, xhttp.NewInternodeDialContext(rest.DefaultTimeout, globalTCPOptions.ForWebsocket()))), newCachedAuthToken(), &tls.Config{ RootCAs: globalRootCAs, CipherSuites: crypto.TLSCiphers(), CurvePreferences: crypto.TLSCurveIDs(), }), Local: local,
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri May 16 14:27:42 UTC 2025 - 3.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt
* canceling may break the entire connection. */ class RealCall( val client: OkHttpClient, /** The application's original request unadulterated by redirects or auth headers. */ val originalRequest: Request, val forWebSocket: Boolean, ) : Call, Cloneable, Lockable { private val connectionPool: RealConnectionPool = client.connectionPool.delegate @Volatile
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 19.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
writeTimeoutMillis = 10_000, ) fun newRoutePlanner( client: OkHttpClient, address: Address = newAddress(), ): RealRoutePlanner { val call = RealCall(client, Request(address.url), forWebSocket = false) val chain = newChain(call) return RealRoutePlanner( taskRunner = client.taskRunner, connectionPool = client.connectionPool.delegate, readTimeoutMillis = client.readTimeoutMillis,Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Oct 08 03:50:05 UTC 2025 - 6.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt
readyAsyncCalls.add(enqueuedCall) // Mutate the AsyncCall so that it shares the AtomicInteger of an existing running call to // the same host. if (!enqueuedCall.call.forWebSocket) { val existingCall = findExistingCallWithHost(enqueuedCall.host) if (existingCall != null) enqueuedCall.reuseCallsPerHostFrom(existingCall) } } val becameIdle =
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Oct 07 14:16:22 UTC 2025 - 9.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt
.header("Sec-WebSocket-Key", key) .header("Sec-WebSocket-Version", "13") .header("Sec-WebSocket-Extensions", "permessage-deflate") .build() call = RealCall(webSocketClient, request, forWebSocket = true) call!!.enqueue( object : Callback { override fun onResponse( call: Call, response: Response, ) { val socket = try {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 21.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
} } /** Prepares the [request] to be executed at some point in the future. */ override fun newCall(request: Request): Call = RealCall(this, request, forWebSocket = false) /** Uses [request] to connect a new web socket. */ override fun newWebSocket( request: Request, listener: WebSocketListener, ): WebSocket { val webSocket =
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Oct 07 21:55:03 UTC 2025 - 51.4K bytes - Viewed (0)