mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
直接close socket,解决TLS half-close policy报错问题 (#5240)
This commit is contained in:
@@ -167,16 +167,6 @@ public class BioSocketChannel implements SocketChannel {
|
|||||||
public void close() {
|
public void close() {
|
||||||
Socket socket = this.socket;
|
Socket socket = this.socket;
|
||||||
if (socket != null) {
|
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 {
|
try {
|
||||||
socket.close();
|
socket.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user