This one change to eliminate the read unless there are really bytes to read
is good for a 7 to 9% performance boost on AIX.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89809
13f79535-47bb-0310-9956-
ffa450edef68
*/
timeout = SECONDS_TO_LINGER * APR_USEC_PER_SEC;
apr_setsocketopt(c->client_socket, APR_SO_TIMEOUT, timeout);
+ apr_setsocketopt(c->client_socket, APR_INCOMPLETE_READ, 1);
for (;;) {
nbytes = sizeof(dummybuf);
rc = apr_recv(c->client_socket, dummybuf, &nbytes);