mirror of
https://github.com/python/cpython
synced 2026-09-29 09:55:31 +03:00
Set .addr in a few more places (patch approved by Sam Rushing)
This commit is contained in:
parent
4a5a2bc2b6
commit
4602c1b702
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue