Skip to content
Snippets Groups Projects
Commit eb2869bd authored by Monty Brandenberg's avatar Monty Brandenberg
Browse files

SH-4371 Reduce 22mS inter-conenction latency on HTTP operations.

Simple change dropped this value by 7-10mS or so.  Any time we
complete an operation on a transport pass, arrange to skip the
run-loop sleep so that we fill a possible empty slot as quickly
as possible.  With pipelining, this kind of thing should become
unnecessary but for now, we'll do this to increase throughput.
parent c9e64823
No related branches found
No related tags found
No related merge requests found
...@@ -132,12 +132,10 @@ HttpService::ELoopSpeed HttpLibcurl::processTransport() ...@@ -132,12 +132,10 @@ HttpService::ELoopSpeed HttpLibcurl::processTransport()
CURL * handle(msg->easy_handle); CURL * handle(msg->easy_handle);
CURLcode result(msg->data.result); CURLcode result(msg->data.result);
if (completeRequest(mMultiHandles[policy_class], handle, result)) completeRequest(mMultiHandles[policy_class], handle, result);
{ handle = NULL; // No longer valid on return
// Request is still active, don't get too sleepy ret = HttpService::NORMAL; // If anything completes, we may have a free slot.
ret = HttpService::NORMAL; // Turning around quickly reduces connection gap by 7-10mS.
}
handle = NULL; // No longer valid on return
} }
else if (CURLMSG_NONE == msg->msg) else if (CURLMSG_NONE == msg->msg)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment