Re: Memory usage fix (patch)

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 17 Mar 2005 21:46:18 +0100 (CET)

On Thu, 17 Mar 2005, Adrian Chadd wrote:

> The defer handler is set when the FD is created and stays for the
> lifetime of the socket.

Actually it is reset between requests, installed when the protocol is
ready to start receiving the response. This because it needs to know the
current request, but the general idea is the same.

The defer handler is installed by commSetDefer() calls found in each
protocol, and a quick grep for this function will tell you that there is
three different defer handlers

a) fwdCheckDeferRead, the main one for most forwarded requests

b) clientReadDefer, to pause reading client request data when having to
wait for the origin server first..

c) sslDeferServerRead, implementing delay pools on CONNECT requests.

Regards
Henrik
Received on Thu Mar 17 2005 - 13:51:21 MST

This archive was generated by hypermail pre-2.1.9 : Fri Apr 01 2005 - 12:00:04 MST