[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue9792] create_connection() recasts timeout errors

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

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 >>> socket.setde

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 lost for other