[New-bugs-announce] [issue31268] Inconsistent socket timeout exception
desbma
report at bugs.python.org
Thu Aug 24 06:53:17 EDT 2017
New submission from desbma:
When trying to connect a classic TCP socket to a non reachable peer, the exception reported is inconsistent if the socket has a timeout set.
See the attached program, on my system (Arch Linux with Linux 4.9 & Python 3.6.2) it outputs:
timeout timed out
timeout timed out
timeout timed out
OSError [Errno 113] No route to host
timeout timed out
timeout timed out
timeout timed out
OSError [Errno 113] No route to host
timeout timed out
timeout timed out
timeout timed out
OSError [Errno 113] No route to host
timeout timed out
timeout timed out
timeout timed out
OSError [Errno 113] No route to host
timeout timed out
timeout timed out
timeout timed out
OSError [Errno 113] No route to host
I expect one of the two exceptions to be thrown every time, not a mix of both.
Thank you
----------
components: Library (Lib)
files: socket_timeout.py
messages: 300779
nosy: desbma
priority: normal
severity: normal
status: open
title: Inconsistent socket timeout exception
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file47098/socket_timeout.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31268>
_______________________________________
More information about the New-bugs-announce
mailing list