change paramter

This commit is contained in:
yihaoDeng 2022-11-28 20:43:33 +08:00
parent 0611ecbe31
commit 3727cedeb3
1 changed files with 2 additions and 3 deletions

View File

@ -202,9 +202,8 @@ bool transReadComplete(SConnBuffer* connBuf) {
} }
int transSetConnOption(uv_tcp_t* stream) { int transSetConnOption(uv_tcp_t* stream) {
uv_tcp_nodelay(stream, 1); return uv_tcp_nodelay(stream, 1);
int ret = uv_tcp_keepalive(stream, 5, 60); // int ret = uv_tcp_keepalive(stream, 5, 60);
return ret;
} }
SAsyncPool* transAsyncPoolCreate(uv_loop_t* loop, int sz, void* arg, AsyncCB cb) { SAsyncPool* transAsyncPoolCreate(uv_loop_t* loop, int sz, void* arg, AsyncCB cb) {