Pavel Plesov 4fd2dd9d83 Do not send an HTTP error when we've already closed or responded.
Previously, we'd issue an HTTP/1.1 400 Bad Request" response on every
connection close, event if sever sent response already.

This patch changes the behavior, so we only issue the response on
close when the connection state is not DISCONNECTED, and so we set
the state to DISCONNECTED when the connection closes.

Includes a regression test; fixes sourceforge bug 2909909.
2010-01-11 18:54:23 -05:00
..
2009-11-23 12:55:50 -05:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00