feat(接口测试): 调试报告websocket连接增加保持连接机制
--story=1005010 --user=赵勇 调试报告websocket连接增加保持连接机制 https://www.tapd.cn/55049933/s/1104896
This commit is contained in:
parent
8b1bfc2d27
commit
1875638720
|
@ -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