Commit 42ca78760d0a5618dc628e6f307df54a6b5527d0
1 parent
71c1c365fd
Exists in
master
修改默认参数值设置
Showing 1 changed file with 3 additions and 3 deletions
core.sdk/src/main/java/com/lyms/util/remote/AbsRemote.java
View file @
42ca787
| ... | ... | @@ -51,11 +51,11 @@ |
| 51 | 51 | /** |
| 52 | 52 | * 连接超时时间 |
| 53 | 53 | */ |
| 54 | - public final static int CONNECT_TIMEOUT = 5000; | |
| 54 | + public final static int CONNECT_TIMEOUT = 20000; | |
| 55 | 55 | /** |
| 56 | 56 | * 读取超时时间 |
| 57 | 57 | */ |
| 58 | - public final static int READ_TIMEOUT = 5000; | |
| 58 | + public final static int READ_TIMEOUT = 20000; | |
| 59 | 59 | /** |
| 60 | 60 | * 请求缓存 |
| 61 | 61 | */ |
| ... | ... | @@ -63,7 +63,7 @@ |
| 63 | 63 | /** |
| 64 | 64 | * socket超时时间 |
| 65 | 65 | */ |
| 66 | - public final static int SO_TIMEOUT = 3000; | |
| 66 | + public final static int SO_TIMEOUT = 15000; | |
| 67 | 67 | |
| 68 | 68 | static { |
| 69 | 69 | SocketConfig socketConfig = SocketConfig.custom().setSoKeepAlive(true).setSoTimeout(CONNECT_TIMEOUT).setTcpNoDelay(false).setSoReuseAddress(true).setSoKeepAlive(true).build(); |