提交 2f1c5fa1 编写于 作者: H hrsakai 提交者: Andrews

no call session.close() in onWebSocketError() (#378)

上级 f13606e8
......@@ -92,7 +92,6 @@ public abstract class AbstractWebSocketHandler extends WebSocketAdapter implemen
super.onWebSocketError(cause);
log.info("[{}] WebSocket error on topic {} : {}", getSession().getRemoteAddress(), topic, cause.getMessage());
try {
getSession().close();
close();
} catch (IOException e) {
log.error("Failed in closing producer for topic[{}] with error: [{}]: ", topic, e.getMessage());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册