[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: When you call socket.create_connection() and it fails because it hits the socket timeout, the socket.timeout error is recast as a generic socket.error, which makes analyzing the failure more difficult (also, it means the errno attribute is

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: On Ubuntu 10.04: giampa...@ubuntu:~/svn/python-3.2$ ./python Python 3.2a1+ (py3k:84457, Sep 3 2010, 20:18:38) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. import socket import socket

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file18788/createconn.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9792

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch committed in r84598. Needs backporting to 3.1 and 2.7. -- resolution: - fixed stage: needs patch - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9792 ___ ___ Python-bugs-list