mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher
This commit is contained in:
parent
4c94c53630
commit
977c707b42
10 changed files with 126 additions and 42 deletions
|
@ -838,8 +838,7 @@ else:
|
|||
asyncore.dispatcher.__init__(self, sock)
|
||||
self.listen(5)
|
||||
|
||||
def handle_accept(self):
|
||||
sock_obj, addr = self.accept()
|
||||
def handle_accepted(self, sock_obj, addr):
|
||||
if support.verbose:
|
||||
sys.stdout.write(" server: new connection from %s:%s\n" %addr)
|
||||
self.ConnectionHandler(sock_obj, self.certfile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue