log more info when send timeout

pull/484/head V6.05
YuQing 2019-12-26 11:01:58 +08:00
parent 10906677a4
commit 9442384755
1 changed files with 5 additions and 3 deletions

View File

@ -444,8 +444,10 @@ static void client_sock_write(int sock, short event, void *arg)
if (event & IOEVENT_TIMEOUT)
{
logError("file: "__FILE__", line: %d, " \
"send timeout", __LINE__);
logError("file: "__FILE__", line: %d, "
"client ip: %s, send timeout, offset: %d, "
"remain bytes: %d", __LINE__, pTask->client_ip,
pTask->offset, pTask->length - pTask->offset);
task_finish_clean_up(pTask);
return;
@ -453,7 +455,7 @@ static void client_sock_write(int sock, short event, void *arg)
if (event & IOEVENT_ERROR)
{
logDebug("file: "__FILE__", line: %d, " \
logDebug("file: "__FILE__", line: %d, "
"client ip: %s, recv error event: %d, "
"close connection", __LINE__, pTask->client_ip, event);