upgrade version to V6.0.1

pull/348/head
YuQing 2019-10-25 14:49:51 +08:00
parent 6b1f5e0cca
commit 1943f3d49a
3 changed files with 48 additions and 26 deletions

View File

@ -3,7 +3,7 @@
%define FDFSClient libfdfsclient %define FDFSClient libfdfsclient
%define FDFSClientDevel libfdfsclient-devel %define FDFSClientDevel libfdfsclient-devel
%define FDFSTool fastdfs-tool %define FDFSTool fastdfs-tool
%define FDFSVersion 6.0.0 %define FDFSVersion 6.0.1
%define CommitVersion %(echo $COMMIT_VERSION) %define CommitVersion %(echo $COMMIT_VERSION)
Name: %{FastDFS} Name: %{FastDFS}

View File

@ -267,7 +267,9 @@ static void client_sock_read(int sock, short event, void *arg)
if (event & IOEVENT_TIMEOUT) if (event & IOEVENT_TIMEOUT)
{ {
if (pClientInfo->total_offset == 0 && pTask->req_count > 0) if (pClientInfo->total_offset == 0)
{
if (pTask->req_count > 0)
{ {
pTask->event.timer.expires = g_current_time + pTask->event.timer.expires = g_current_time +
g_fdfs_network_timeout; g_fdfs_network_timeout;
@ -276,12 +278,21 @@ static void client_sock_read(int sock, short event, void *arg)
} }
else else
{ {
logError("file: "__FILE__", line: %d, " \ logWarning("file: "__FILE__", line: %d, "
"client ip: %s, recv timeout, " \ "client ip: %s, recv timeout. "
"recv offset: %d, expect length: %d", \ "after the connection is established, "
__LINE__, pTask->client_ip, \ "you must send a request before %ds timeout",
pTask->offset, pTask->length); __LINE__, pTask->client_ip, g_fdfs_network_timeout);
task_finish_clean_up(pTask);
}
}
else
{
logError("file: "__FILE__", line: %d, "
"client ip: %s, recv timeout, "
"recv offset: %d, expect length: %d, "
"req_count: %"PRId64, __LINE__, pTask->client_ip,
pTask->offset, pTask->length, pTask->req_count);
task_finish_clean_up(pTask); task_finish_clean_up(pTask);
} }

View File

@ -198,7 +198,9 @@ static void client_sock_read(int sock, short event, void *arg)
if (event & IOEVENT_TIMEOUT) if (event & IOEVENT_TIMEOUT)
{ {
if (pTask->offset == 0 && pTask->req_count > 0) if (pTask->offset == 0)
{
if (pTask->req_count > 0)
{ {
pTask->event.timer.expires = g_current_time + pTask->event.timer.expires = g_current_time +
g_fdfs_network_timeout; g_fdfs_network_timeout;
@ -207,12 +209,21 @@ static void client_sock_read(int sock, short event, void *arg)
} }
else else
{ {
logError("file: "__FILE__", line: %d, " \ logWarning("file: "__FILE__", line: %d, "
"client ip: %s, recv timeout, " \ "client ip: %s, recv timeout. "
"recv offset: %d, expect length: %d", \ "after the connection is established, "
__LINE__, pTask->client_ip, \ "you must send a request before %ds timeout",
pTask->offset, pTask->length); __LINE__, pTask->client_ip, g_fdfs_network_timeout);
task_finish_clean_up(pTask);
}
}
else
{
logError("file: "__FILE__", line: %d, "
"client ip: %s, recv timeout, "
"recv offset: %d, expect length: %d, "
"req_count: %"PRId64, __LINE__, pTask->client_ip,
pTask->offset, pTask->length, pTask->req_count);
task_finish_clean_up(pTask); task_finish_clean_up(pTask);
} }