refactor: update the transport module.
This commit is contained in:
parent
f8a84a1d19
commit
0d3a6c6261
|
@ -192,7 +192,7 @@ bool transReadComplete(SConnBuffer* connBuf) {
|
|||
}
|
||||
|
||||
int transSetConnOption(uv_tcp_t* stream) {
|
||||
uv_tcp_nodelay(stream, 1);
|
||||
uv_tcp_nodelay(stream, 0);
|
||||
int ret = uv_tcp_keepalive(stream, 5, 60);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue