Kaydet (Commit) 4602c1b7 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Set .addr in a few more places (patch approved by Sam Rushing)

üst 4a5a2bc2
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment