refactor: update the transport module.

This commit is contained in:
Haojun Liao 2022-09-30 13:48:09 +08:00
parent f8a84a1d19
commit 0d3a6c6261
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}