1
This commit is contained in:
parent
c71e7fb8b5
commit
b58ab4434b
@ -177,7 +177,7 @@ namespace f8
|
||||
long long begin_tick = a8::XGetTickCount();
|
||||
ret = a8::http::Get(finally_url, response, &node->headers, 10);
|
||||
long long end_tick = a8::XGetTickCount();
|
||||
if (thread_id <= f8::HttpClientPool::Instance()->sys_num) {
|
||||
if (thread_id < f8::HttpClientPool::Instance()->sys_num) {
|
||||
if (end_tick - begin_tick > f8::HttpClientPool::Instance()->max_sys_request_delay) {
|
||||
f8::HttpClientPool::Instance()->max_sys_request_delay = end_tick - begin_tick;
|
||||
}
|
||||
@ -193,7 +193,7 @@ namespace f8
|
||||
long long begin_tick = a8::XGetTickCount();
|
||||
ret = a8::http::Post(finally_url.c_str(), node->content, response, &node->headers, 10);
|
||||
long long end_tick = a8::XGetTickCount();
|
||||
if (thread_id <= f8::HttpClientPool::Instance()->sys_num) {
|
||||
if (thread_id < f8::HttpClientPool::Instance()->sys_num) {
|
||||
if (end_tick - begin_tick > f8::HttpClientPool::Instance()->max_sys_request_delay) {
|
||||
f8::HttpClientPool::Instance()->max_sys_request_delay = end_tick - begin_tick;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user