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 <rep...@bugs.python.org>
<http://bugs.python.org/issue31268>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to