facebook/tornado — Issue #386: http clients don't work with HEAD, PUT and DELETE requests - run into timeout
Author: wmark
Created: 2011-10-21 00:31:29+00:00
State: open

Tornado's http clients utilizing ```_HTTPConnection``` do not behave correctly with HEAD, PUT and DELETE requests:

1. Despite responses to these methods not having a body, ```_HTTPConnection``` is waiting for one after having processed the headers. [1]_
2. A timeout occurs. Server closes the connection as despite having sent a HTTP 1.1 request connections has neither been closed nor used for requesting more.
3. The actual and correct response (consisting of headers only) is not used but a dummy-response with code 599 yielded. [2]_

Fixed by (replace "anzu" by "tornado"):
https://github.com/wmark/anzu/commit/2464ac9039342a34ecea5606cf4885dc53db28b6

.. [1] https://github.com/facebook/tornado/blob/master/tornado/simple_httpclient.py#L333
.. [2] https://github.com/facebook/tornado/blob/master/tornado/simple_httpclient.py#L292