Search squid archive

Re: Re: ecap adapted body limited to 64k

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/25/2012 10:32 AM, carteriii wrote:

> I expected to find some sort of while() loop in squid

I agree with Amos that if a question is "where is the while() loop?",
then this discussion belongs to squid-dev rather than squid-users :-).

A brief answer is that Squid uses an "I/O loop" design to serve many
concurrent transactions without threads. That design makes most "loops"
implicit, except for the main I/O loop: check for ready I/O descriptors,
quickly process each ready descriptor without blocking, check for ready
descriptors, quickly process each ready descriptor without blocking,
check for ready I/O descriptors, ...

In your particular case, Squid should come back to your adapter and ask
for the next adapted body chunk _after_ Squid writes at least some of
the 64KB of adapted body content that Squid already got (and "shifted").
Such writing is necessary to free Squid buffer space before more adapted
body can be copied from the adapter.


HTH,

Alex.



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux