jech / polipo

The Polipo caching HTTP proxy
http://www.pps.jussieu.fr/~jch/software/polipo/
MIT License
1.81k stars 355 forks source link

socket not close when parse error #61

Open lz5 opened 9 years ago

lz5 commented 9 years ago

If polipo receive request like:

POST / HTTP/1.1

or

POST / HTTP/1.1 Host: www.example.com

after response with HTTP 405 error or "Couldn't parse URL ...", the connection->fd will never close (leak)

jech commented 9 years ago

Probably the same as #34.

The issue appears to be that when notifyObject is called in httpServerRequest, there is nobody listening on the object.