From 4602c1b702c32331c2204cf741a51f8f2db3edf9 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Wed, 3 Oct 2001 17:07:25 +0000 Subject: [PATCH] Set .addr in a few more places (patch approved by Sam Rushing) --- Lib/asyncore.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 5175002a31..e97016243f 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -201,6 +201,7 @@ class dispatcher: # I think it should inherit this anyway self.socket.setblocking (0) self.connected = 1 + self.addr = sock.getpeername() def __repr__ (self): try: @@ -306,6 +307,7 @@ class dispatcher: return else: raise socket.error, why + self.addr = address self.connected = 1 self.handle_connect() -- 2.40.0