Class InputShutdownCheckingSslSocket

java.lang.Object
java.net.Socket
javax.net.ssl.SSLSocket
software.amazon.awssdk.http.apache.internal.net.DelegateSslSocket
software.amazon.awssdk.http.apache.internal.net.InputShutdownCheckingSslSocket
All Implemented Interfaces:
Closeable, AutoCloseable

public final class InputShutdownCheckingSslSocket extends DelegateSslSocket
Wrapper socket that ensures the read end of the socket is still open before performing a write(). In TLS 1.3, it is permitted for the connection to be in a half-closed state, which is dangerous for the Apache client because it can get stuck in a state where it continues to write to the socket and potentially end up a blocked state writing to the socket indefinitely.