[Python-Dev] Socket timeout: reset timeout at each successful syscall? (original) (raw)
Victor Stinner victor.stinner at gmail.com
Sat Apr 4 17:04:10 CEST 2015
- Previous message (by thread): [Python-Dev] Socket timeout: reset timeout at each successful syscall?
- Next message (by thread): [Python-Dev] Summary of Python tracker Issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le samedi 4 avril 2015, Ludovic Gasc <gmludo at gmail.com> a écrit :
From a user's point of view, it should count for the total time, IMO. If people want a timeout for each syscall, they should call send() iteratively.
I'm agree with Antoine for a global timeout.
Ok, I also agree. I will modify sendall in Python 3.5 and suggest to loop on send to keep the same behaviour on timeout.
I don't want to change python 3.4 or 2.7, it would be strange to have a different behaviour in a minor python version.
Victor -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20150404/ffc836eb/attachment.html>
- Previous message (by thread): [Python-Dev] Socket timeout: reset timeout at each successful syscall?
- Next message (by thread): [Python-Dev] Summary of Python tracker Issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]