From fc8c6f8ebc42022ee34c9c09bcc4d420c389e386 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Fri, 25 Oct 2019 15:58:55 +0800 Subject: [PATCH] log more info when recv timeout --- storage/storage_nio.c | 3 ++- tracker/tracker_nio.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/storage/storage_nio.c b/storage/storage_nio.c index aa8c58f..911ff0a 100644 --- a/storage/storage_nio.c +++ b/storage/storage_nio.c @@ -281,7 +281,8 @@ static void client_sock_read(int sock, short event, void *arg) logWarning("file: "__FILE__", line: %d, " "client ip: %s, recv timeout. " "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); task_finish_clean_up(pTask); } diff --git a/tracker/tracker_nio.c b/tracker/tracker_nio.c index 36a2a46..796843e 100644 --- a/tracker/tracker_nio.c +++ b/tracker/tracker_nio.c @@ -212,7 +212,8 @@ static void client_sock_read(int sock, short event, void *arg) logWarning("file: "__FILE__", line: %d, " "client ip: %s, recv timeout. " "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); task_finish_clean_up(pTask); }