直接close socket,解决TLS half-close policy报错问题 (#5240)

This commit is contained in:
hbzheng8
2024-08-29 12:47:50 +08:00
committed by GitHub
parent b060f46ccf
commit ff82fd6532

View File

@@ -167,16 +167,6 @@ public class BioSocketChannel implements SocketChannel {
public void close() {
Socket socket = this.socket;
if (socket != null) {
try {
socket.shutdownInput();
} catch (IOException e) {
// Ignore, could not do anymore
}
try {
socket.shutdownOutput();
} catch (IOException e) {
// Ignore, could not do anymore
}
try {
socket.close();
} catch (IOException e) {