zjs 1 неделя назад
Родитель
Сommit
c5e61eebbd
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/main/java/com/cn/esermis/netty/BootNettyChannelInitializer.java

+ 3 - 3
src/main/java/com/cn/esermis/netty/BootNettyChannelInitializer.java

@@ -14,11 +14,11 @@ import java.util.concurrent.TimeUnit;
14
 public class BootNettyChannelInitializer<SocketChannel>extends ChannelInitializer<Channel> {
14
 public class BootNettyChannelInitializer<SocketChannel>extends ChannelInitializer<Channel> {
15
 
15
 
16
     //注意超时时间,这里配置,最好设置长点,要不代码 会自动关连接。这里是60秒
16
     //注意超时时间,这里配置,最好设置长点,要不代码 会自动关连接。这里是60秒
17
-    public static long READ_TIME_OUT = 60;
17
+    public static long READ_TIME_OUT = 60*30;
18
 
18
 
19
-    public static long WRITE_TIME_OUT = 60;
19
+    public static long WRITE_TIME_OUT = 60*30;
20
 
20
 
21
-    public static long ALL_TIME_OUT = 60;
21
+    public static long ALL_TIME_OUT = 60*30;
22
 
22
 
23
     @Override
23
     @Override
24
     protected void initChannel(Channel ch) throws Exception {
24
     protected void initChannel(Channel ch) throws Exception {