log more info when recv timeout

pull/348/head V6.01
YuQing 2019-10-25 15:58:55 +08:00
parent 1943f3d49a
commit fc8c6f8ebc
2 changed files with 4 additions and 2 deletions

View File

@ -281,7 +281,8 @@ static void client_sock_read(int sock, short event, void *arg)
logWarning("file: "__FILE__", line: %d, " logWarning("file: "__FILE__", line: %d, "
"client ip: %s, recv timeout. " "client ip: %s, recv timeout. "
"after the connection is established, " "after the connection is established, "
"you must send a request before %ds timeout", "you must send a request before %ds timeout, "
"maybe connections leak in you application.",
__LINE__, pTask->client_ip, g_fdfs_network_timeout); __LINE__, pTask->client_ip, g_fdfs_network_timeout);
task_finish_clean_up(pTask); task_finish_clean_up(pTask);
} }

View File

@ -212,7 +212,8 @@ static void client_sock_read(int sock, short event, void *arg)
logWarning("file: "__FILE__", line: %d, " logWarning("file: "__FILE__", line: %d, "
"client ip: %s, recv timeout. " "client ip: %s, recv timeout. "
"after the connection is established, " "after the connection is established, "
"you must send a request before %ds timeout", "you must send a request before %ds timeout, "
"maybe connections leak in you application.",
__LINE__, pTask->client_ip, g_fdfs_network_timeout); __LINE__, pTask->client_ip, g_fdfs_network_timeout);
task_finish_clean_up(pTask); task_finish_clean_up(pTask);
} }