mirror of https://github.com/python/cpython
merge in the fix for test_ftplib on some bots [reviewed by Georg]
This commit is contained in:
parent
7ff19fa293
commit
e14267bbad
|
@ -212,6 +212,11 @@ class DummyFTPServer(asyncore.dispatcher, threading.Thread):
|
||||||
def handle_accept(self):
|
def handle_accept(self):
|
||||||
conn, addr = self.accept()
|
conn, addr = self.accept()
|
||||||
self.handler = self.handler(conn)
|
self.handler = self.handler(conn)
|
||||||
|
self.close()
|
||||||
|
|
||||||
|
def handle_connect(self):
|
||||||
|
self.close()
|
||||||
|
handle_read = handle_connect
|
||||||
|
|
||||||
def writable(self):
|
def writable(self):
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue