Helpers parse response bug

From: Tsantilas Christos <chtsanti_at_users.sourceforge.net>
Date: Tue, 04 Dec 2012 16:24:03 +0200

Hi all,

I think I found a bug in the current helpers response parsing code: One
byte remains in helpers io buffer after parsing the response. This is
will cause problems when the next response from helper will enter squid.

The bug exist in helperHandleRead and helperReturnBuffer functions exist
in src/helper.cc file.
After the srv->rbuf parsed, the srv->rbuf still contains on byte (a
'\0' char) and the srv->roffset is 1.

I am posting a patch which fixes the problem.
Also a second patch (helpers-fix-alternate.patch) to help you understand
the problem.

Regards,
   Christos

Received on Tue Dec 04 2012 - 14:24:15 MST

This archive was generated by hypermail 2.2.0 : Wed Dec 05 2012 - 12:00:09 MST