concurrent requests?

From: Adrian Chadd <adrian@dont-contact.us>
Date: Wed, 31 May 2000 20:30:25 +0800

Hey,

What does this do?

        /* Limit the number of concurrent requests to 2 */
        for (H = &conn->chr, nrequests = 0; *H; H = &(*H)->next, nrequests++);
        if (nrequests >= 2) {
            debug(33, 3) ("clientReadRequest: FD %d max concurrent requests reac
hed\n", fd);
            debug(33, 5) ("clientReadRequest: FD %d defering new request until o
ne is done\n", fd);
            conn->defer.until = squid_curtime + 100; /* Reset when a request
is complete */
            break;
        }

from clientReadRequest() . As far as I can tell, this gets hit if
squid gets a request from a client while the reply is still being served.

Is this right?

Adrian

-- 
Adrian Chadd			Build a man a fire, and he's warm for the
<adrian@creative.net.au>	rest of the evening. Set a man on fire and
				he's warm for the rest of his life.
Received on Wed May 31 2000 - 06:30:32 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:27 MST