[Patches] [ python-Patches-760257 ] add socket.timeout exception
SourceForge.net
noreply@sourceforge.net
Sat, 28 Jun 2003 13:19:38 -0700
Patches item #760257, was opened at 2003-06-24 23:55
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=760257&group_id=5470
Category: Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Bob Halley (rthalley)
Assigned to: Raymond Hettinger (rhettinger)
Summary: add socket.timeout exception
Initial Comment:
Here's a patch for bug 758239. It adds a
socket.timeout exception to the socket module, and
raises that exception whenever a timeout occurs.
I have tried to use a light hand, making only
(hopefully) correctness-preserving edits as opposed to
attempting any more radical restructuring of the way
internal_select() is used.
The diff is against the CVS current version of
socketmodule.c.
I have tested this by hand on my x86 Red Hat 9 system,
and it works correctly. I have also done "make test"
and had no failures related to the socket module
(though I too am seeing a failure of test_strptime).
I do not have a Windows build environment available to
me, so I have not tested my changes on Windows.
/Bob
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-06-28 15:19
Message:
Logged In: YES
user_id=80475
I haven't yet been able to review this in detail.
Is a simpler implementation possible (changing socket.error
to socket.timeout and changing nothing else)?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=760257&group_id=5470