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.
Created on 2011年08月30日 17:05 by langmartin, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg143227 - (view) | Author: Lang Martin (langmartin) | Date: 2011年08月30日 17:05 | |
on line 765 of client/http.py, the client loops over the read method, sending it's content to the web server. It appears as though the send method should return at this point; instead it falls through and attempts to send the data object through first self.sock.sendall, falling back to the iterable interface. The result is that a readable data object must support a null __iter__ method, or if it supports both a working read and __iter__, the data will be sent to the server twice. Change the break on line 768 to a return, and the expected behavior happens. |
|||
| msg221567 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014年06月25日 18:32 | |
This looks identical to the problem fixed on #16658. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:21 | admin | set | github: 57069 |
| 2014年06月25日 19:59:01 | ned.deily | set | status: open -> closed superseder: Missing "return" in HTTPConnection.send() stage: resolved resolution: duplicate versions: + Python 3.3, Python 3.4, - Python 3.2 |
| 2014年06月25日 18:32:49 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg221567 |
| 2011年09月02日 16:56:08 | eric.araujo | set | nosy:
+ orsenthil |
| 2011年08月30日 17:05:30 | langmartin | create | |