A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-April/139021.html below:

reset timeout at each successful syscall?

[Python-Dev] Socket timeout: reset timeout at each successful syscall? [Python-Dev] Socket timeout: reset timeout at each successful syscall?Antoine Pitrou solipsis at pitrou.net
Sat Apr 4 13:27:25 CEST 2015
On Fri, 3 Apr 2015 13:56:44 +0200
Victor Stinner <victor.stinner at gmail.com> wrote:
> 
> The problem is that the socket.sendall() method may require multiple
> syscalls. In this case, does the timeout count for the total time or
> only for a single syscall? Asked differently: should we reset the
> timeout each time a syscall succeed?

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.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4