[issue25838] Lib/httplib.py: Resend http request on server close connection

Mikhail Gulyaev report at bugs.python.org
Fri Dec 11 23:39:02 EST 2015


Mikhail Gulyaev added the comment:

You right I found who resend requests!

My request is goes through httplb2(which use httplib and resends request on failure), but the issue is that if request body contains file and then that file is read out and on retry there is nothing to read since we already read it in httplib. 
So what solution could you suggest for me? Is it some patch for httplib2 or totally my own troubles

This issue is on border of interacting httplib and httplib2
 - httplib sends request and reads out a file
 - httplib2 resends a request but file is already readed out

Will it be honest if we rereads file in httplib2? and could we able assume that readable object(hasattr(data,'read') == True) has also tell and seek methods

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25838>
_______________________________________


More information about the Python-bugs-list mailing list