tech-net archive

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

Re: TCP connections clogging up accf_http(9)



> It does, but Robert is right in that eventually, when the queue is
> full, it remains full (drop one from q0, add one to q0, ad inf.), so
> the accept filter is for all practical purposes defeated.
I disagree.
If q0 is full, then every new connection will be inserted at the "new" end 
and push out another one at the "old" end. If there's more pressure on q0, 
more of the old entries will be pushed out. Provided you have substantially 
more real connections (i.e. those that will send a full request in a short 
time) than dead ones (i.e. those that will linger in the Accept Filter 
indefinetely), in the long run, you will get exactly what you need: just 
enough free entries on q0 to have new connections stay in the Accept Filter 
as short as they need to.
Of course, the rest of q0 will be full of garbage, but that doesn't do any 
harm, does it?
If you have more dead connections that real ones, you're in trouble no matter 
what you do.


Home | Main Index | Thread Index | Old Index