Message245626
Requesting HTTP using `requests`, which uses `http.client` which use `socket`, sometimes, my program get stuck like this:
```
File "/usr/lib/python3.2/socket.py", line 287 in readinto
File "/usr/lib/python3.2/http/client.py", line 308 in _read_status
File "/usr/lib/python3.2/http/client.py", line 346 in begin
File "/usr/lib/python3.2/http/client.py", 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:11 | Julien.Palard | set | recipients:
+ Julien.Palard |
2015-06-22 13:15:11 | Julien.Palard | set | messageid: <1434978911.11.0.520674356543.issue24486@psf.upfronthosting.co.za> |
2015-06-22 13:15:11 | Julien.Palard | link | issue24486 messages |
2015-06-22 13:15:11 | Julien.Palard | create | |
|