feat(接口测试): 调试报告websocket连接增加保持连接机制
--story=1005010 --user=赵勇 调试报告websocket连接增加保持连接机制 https://www.tapd.cn/55049933/s/1104896
This commit is contained in:
parent
f72862566a
commit
0c57cad82c
|
@ -16,6 +16,8 @@ public class WebSocketUtils {
|
|||
if (session == null) {
|
||||
return;
|
||||
}
|
||||
// 设置永不超时,一直保持会话连接
|
||||
session.setMaxIdleTimeout(-1);
|
||||
RemoteEndpoint.Async async = session.getAsyncRemote();
|
||||
if (async == null) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue