When implying keep-alive in client_connection(), remember that the client didn't
authorFabian Keil <fk@fabiankeil.de>
Sun, 16 Oct 2011 12:39:14 +0000 (12:39 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 16 Oct 2011 12:39:14 +0000 (12:39 +0000)
commit8931748f574279927c586ce0096edf77eff94147
tree9ad91979c807d292ccb2c7dfa086946a4f6fd746
parent23a7c580a1a354082cd033c5faddd12b774b9777
When implying keep-alive in client_connection(), remember that the client didn't

Fixes a regression introduced in jcc.c,v 1.265 that would
cause Privoxy to wait for additional client requests after
receiving a HTTP/1.1 request with "Connection: close" set
and connection sharing enabled.

With clients like curl which terminates the client connection
after detecting that the whole body has been received it doesn't
really matter, but with clients like FreeBSD's fetch the client
connection would be kept open until it timed out. Oops.

As it turns out the whole "upgrade server connection to
use keep-alive even when the client connection has to
be closed" currently doesn't work for other reasons,
so additionally add a XXX comment about it.
parsers.c