This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Julien.Palard
Recipients Julien.Palard
Date 2015-06-22.13:15:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Requesting HTTP using `requests`, which uses `http.client` which use `socket`, sometimes, my program get stuck like this:

File "/usr/lib/python3.2/", line 287 in readinto
File "/usr/lib/python3.2/http/", line 308 in _read_status
File "/usr/lib/python3.2/http/", line 346 in begin
File "/usr/lib/python3.2/http/", line 1052 in getresponse
... in python requests ...

The line is the first of _read_status::

line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")

At a lower level, the program is stuck in a `recvfrom()` syscall.

So obviously, an error at the network level caused the server to not reply, but the client recvfrom() the network in a blocking socket without checking first if data is available, so it get stuck indefinitely :-(
Date User Action Args
2015-06-22 13:15:11Julien.Palardsetrecipients: + Julien.Palard
2015-06-22 13:15:11Julien.Palardsetmessageid: <>
2015-06-22 13:15:11Julien.Palardlinkissue24486 messages
2015-06-22 13:15:11Julien.Palardcreate