Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for webSocketUpgradeFailed (0.1 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

      @Throws(SocketException::class)
      fun newWebSocketStreams(): RealWebSocket.Streams {
        call.timeoutEarlyExit()
        return (codec.carrier as RealConnection).newWebSocketStreams(this)
      }
    
      fun webSocketUpgradeFailed() {
        bodyComplete(-1L, responseDone = true, requestDone = true, e = null)
      }
    
      fun noNewExchangesOnConnection() {
        codec.carrier.noNewExchanges()
      }
    
      fun cancel() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

                streams = exchange!!.newWebSocketStreams()
              } catch (e: IOException) {
                failWebSocket(e, response)
                response.closeQuietly()
                exchange?.webSocketUpgradeFailed()
                return
              }
    
              // Apply the extensions. If they're unacceptable initiate a graceful shut down.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top