Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for shutdownInput (0.04 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt

      val handshakeServerNames: List<String>
        get() =
          (javaNetSocket as? SSLSocket)
            ?.let { Platform.Companion.get().getHandshakeServerNames(it) }
            ?: listOf()
    
      fun shutdownInput() {
        javaNetSocket.shutdownInput()
      }
    
      fun shutdownOutput() {
        javaNetSocket.shutdownOutput()
      }
    
      /** Sleeps [nanos], throwing if the socket is closed before that period has elapsed. */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

        SocketPolicy.FAIL_HANDSHAKE -> result.failHandshake()
        SocketPolicy.SHUTDOWN_INPUT_AT_END ->
          result.onResponseEnd(
            CloseSocket(
              closeSocket = false,
              shutdownInput = true,
            ),
          )
        SocketPolicy.SHUTDOWN_OUTPUT_AT_END ->
          result.onResponseEnd(
            CloseSocket(
              closeSocket = false,
              shutdownOutput = true,
            ),
          )
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 4.1K bytes
    - Viewed (1)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

              stream.connection.shutdown(ErrorCode.NO_ERROR)
            } else {
              socket.close()
            }
          }
    
          is CloseSocket -> {
            if (effect.shutdownInput) socket.shutdownInput()
            if (effect.shutdownOutput) socket.shutdownOutput()
            if (effect.closeSocket) socket.close()
          }
    
          Stall -> {
            // Sleep until the socket is closed.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  4. CHANGELOG.md

     *  Upgrade: [Okio 3.16.3][okio_3_16_3].
    
    
    ## Version 5.2.1
    
    _2025-10-09_
    
     *  Fix: Don't crash when calling `Socket.shutdownOutput()` or `shutdownInput()` on an `SSLSocket`
        on Android API 21 through 23. This method throws an `UnsupportedOperationException`, so we now
        catch that and close the underlying stream instead.
    
     *  Upgrade: [Okio 3.16.1][okio_3_16_1].
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 05 16:02:59 UTC 2025
    - 36.2K bytes
    - Viewed (2)
Back to top