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

2015-12-11 Thread Mikhail Gulyaev
Mikhail Gulyaev added the comment: > Why can’t you do the file rewinding yourself, when you retry the request? Actually I'm not retry to send a request. This behavior I met for httplib library while I'm send a single request, httplib send it to exist connection and then recreates connect

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

2015-12-11 Thread Mikhail Gulyaev
Changes by Mikhail Gulyaev <gmichae...@gmail.com>: Added file: http://bugs.python.org/file41286/Выделение_058.png ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

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

2015-12-11 Thread Mikhail Gulyaev
Changes by Mikhail Gulyaev <gmichae...@gmail.com>: Added file: http://bugs.python.org/file41288/Выделение_061.png ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

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

2015-12-11 Thread Mikhail Gulyaev
Changes by Mikhail Gulyaev <gmichae...@gmail.com>: Added file: http://bugs.python.org/file41287/Выделение_059.png ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

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

2015-12-11 Thread Mikhail Gulyaev
Mikhail Gulyaev added the comment: Thanks for attention -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25838> ___ ___ Pyth

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

2015-12-11 Thread Mikhail Gulyaev
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

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

2015-12-10 Thread Mikhail Gulyaev
New submission from Mikhail Gulyaev: Hello guys! Recently I recived some strange behavior for sending http requests using httplib My python script uses httplib and interacts with a web server which have a keep-alive timeout 5 seconds. Script makes PUT requests and sends files to server

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

2015-12-10 Thread Mikhail Gulyaev
Changes by Mikhail Gulyaev <gmichae...@gmail.com>: -- keywords: +patch Added file: http://bugs.python.org/file41284/httplib.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python