]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix concurrency support in stateless helpers: Parse multiple replies correctly.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 14 Mar 2013 23:04:37 +0000 (17:04 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 14 Mar 2013 23:04:37 +0000 (17:04 -0600)
commit7bef981eb4b82ae484b4a32d6ef6b9e728db2ef6
treefcc66efcbbd573e0ee3dd974524e2d42d28f974f
parent40c973aacb07d95e46bce5f3a7c332ff6ffd372a
Fix concurrency support in stateless helpers: Parse multiple replies correctly.

When multiple helper replies were read at the same time, the old code moved \0
(former EoM mark) in front of the buffer after handling the first reply, which
prevented remaining replies from being parsed.

The code also did not terminate the remaining replies correctly after moving
them to the beginning of the buffer. As far as I could test, such termination
is accidentally(?) not necessary, but I could not figure out why and added it
anyway.
src/helper.cc