Commit 4602c1b7 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

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

parent 4a5a2bc2
...@@ -201,6 +201,7 @@ class dispatcher: ...@@ -201,6 +201,7 @@ class dispatcher:
# I think it should inherit this anyway # I think it should inherit this anyway
self.socket.setblocking (0) self.socket.setblocking (0)
self.connected = 1 self.connected = 1
self.addr = sock.getpeername()
def __repr__ (self): def __repr__ (self):
try: try:
...@@ -306,6 +307,7 @@ class dispatcher: ...@@ -306,6 +307,7 @@ class dispatcher:
return return
else: else:
raise socket.error, why raise socket.error, why
self.addr = address
self.connected = 1 self.connected = 1
self.handle_connect() 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