upgrade version to V6.0.1
parent
6b1f5e0cca
commit
1943f3d49a
|
|
@ -3,7 +3,7 @@
|
|||
%define FDFSClient libfdfsclient
|
||||
%define FDFSClientDevel libfdfsclient-devel
|
||||
%define FDFSTool fastdfs-tool
|
||||
%define FDFSVersion 6.0.0
|
||||
%define FDFSVersion 6.0.1
|
||||
%define CommitVersion %(echo $COMMIT_VERSION)
|
||||
|
||||
Name: %{FastDFS}
|
||||
|
|
|
|||
|
|
@ -267,7 +267,9 @@ static void client_sock_read(int sock, short event, void *arg)
|
|||
|
||||
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 +
|
||||
g_fdfs_network_timeout;
|
||||
|
|
@ -276,12 +278,21 @@ static void client_sock_read(int sock, short event, void *arg)
|
|||
}
|
||||
else
|
||||
{
|
||||
logError("file: "__FILE__", line: %d, " \
|
||||
"client ip: %s, recv timeout, " \
|
||||
"recv offset: %d, expect length: %d", \
|
||||
__LINE__, pTask->client_ip, \
|
||||
pTask->offset, pTask->length);
|
||||
|
||||
logWarning("file: "__FILE__", line: %d, "
|
||||
"client ip: %s, recv timeout. "
|
||||
"after the connection is established, "
|
||||
"you must send a request before %ds timeout",
|
||||
__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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -198,7 +198,9 @@ static void client_sock_read(int sock, short event, void *arg)
|
|||
|
||||
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 +
|
||||
g_fdfs_network_timeout;
|
||||
|
|
@ -207,12 +209,21 @@ static void client_sock_read(int sock, short event, void *arg)
|
|||
}
|
||||
else
|
||||
{
|
||||
logError("file: "__FILE__", line: %d, " \
|
||||
"client ip: %s, recv timeout, " \
|
||||
"recv offset: %d, expect length: %d", \
|
||||
__LINE__, pTask->client_ip, \
|
||||
pTask->offset, pTask->length);
|
||||
|
||||
logWarning("file: "__FILE__", line: %d, "
|
||||
"client ip: %s, recv timeout. "
|
||||
"after the connection is established, "
|
||||
"you must send a request before %ds timeout",
|
||||
__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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue