Message205370
Confirmed that this happens when the server sends a chunked response, or sends a Content-Length header, but not when the server just sends “Connection: close”. So this looks like the same as Issue 19524, and my patch for that seems to fix the issue here.
Python 3 version of the demo code:
import os, urllib.request
data = b"""{"imp": [{"h": 50, "battr": ["9", "10", "12"], "api": 3, "w": 320,
"instl": 0, "impid": "5d6dedf3-17bb-11e2-b5c0-1040f38b83e0"}]""" * 10
req = urllib.request.Request("http://localhost:8000/bogus?src=1", data)
resp = urllib.request.urlopen(req)
v = resp.read()
resp.close()
os.system("ls -alh /proc/%d/fd/*" % os.getpid()) |
|
Date |
User |
Action |
Args |
2013-12-06 13:38:31 | martin.panter | set | recipients:
+ martin.panter, javawizard, Claudio.Freire |
2013-12-06 13:38:31 | martin.panter | set | messageid: <1386337111.44.0.722764622033.issue18144@psf.upfronthosting.co.za> |
2013-12-06 13:38:31 | martin.panter | link | issue18144 messages |
2013-12-06 13:38:31 | martin.panter | create | |
|