Files
cpython/Lib
Jeremy Hylton 2a05bc72d6 Partial fix for problem in SF buf #487458
Rev 1.20 introduced a call to getpeername() in the dispatcher
constructor.  This only works for a connected socket.  Apparently
earlier versions of the code worked with un-connected sockets, e.g. a
listening socket.

It's not clear that the code is supposed to accept these sockets,
because it sets self.connected = 1 when passed a socket.  But it's
also not clear that it should be a fatal error to pass a listening
socket.

The solution, for now, is to put a try/except around the getpeername()
call and continue if it fails.  The self.addr attribute is used
primarily (only?) to produce a nice repr for the object, so it hardly
matters.  If there is a real error on a connected socket, it's likely
that subsequent calls will fail too.
2001-12-14 16:15:11 +00:00
..
2001-12-11 20:44:42 +00:00
2001-08-09 12:48:17 +00:00
2001-08-09 12:33:32 +00:00
2001-12-14 04:19:56 +00:00
2001-04-08 07:23:44 +00:00
2001-08-09 21:40:30 +00:00
2001-10-18 21:57:37 +00:00
2001-11-24 21:04:31 +00:00
2001-10-04 05:36:56 +00:00
2001-08-13 14:55:17 +00:00
2001-12-12 06:20:34 +00:00
2001-11-13 21:51:26 +00:00
2001-10-30 05:56:40 +00:00
2001-06-19 00:26:25 +00:00
2001-05-29 04:27:01 +00:00
2001-08-13 14:50:44 +00:00
2001-07-04 10:15:58 +00:00
2001-10-18 20:58:25 +00:00
2001-10-30 05:56:40 +00:00
2001-11-15 23:42:58 +00:00
2001-08-02 07:15:29 +00:00
2001-05-29 06:06:54 +00:00
2001-10-24 20:22:40 +00:00
2001-10-24 20:42:55 +00:00
2001-10-28 20:15:40 +00:00
2001-09-18 02:26:39 +00:00
2001-10-24 20:42:55 +00:00
2001-12-06 06:23:26 +00:00