Message168068
| Author |
nikratio |
| Recipients |
nikratio |
| Date |
2012年08月13日.01:31:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1344821463.76.0.139090148106.issue15633@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Occasionally, the isclosed() method of HTTPResponse instances returns False, even though a preceding read() call returned '' (or something else that evalues to False).
This is a problem, because then the corresponding HTTPConnection can still be used to send another request, but an attempt to retrieve its response result it in ResponseNotReady() exception.
I have not found anything special about the requests for which this happens. I also looked at the httplib code and found no way for this to happen, but obviously I am missing something. Maybe someone more familiar with the codebase can tell what's happening there.
The problem happens to rarely to be able to run packet capture, but I can provide attributes of the relevant httplib instances if desired. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年08月13日 01:31:03 | nikratio | set | recipients:
+ nikratio |
| 2012年08月13日 01:31:03 | nikratio | set | messageid: <1344821463.76.0.139090148106.issue15633@psf.upfronthosting.co.za> |
| 2012年08月13日 01:31:03 | nikratio | link | issue15633 messages |
| 2012年08月13日 01:31:02 | nikratio | create |
|