Commit 84c1576e authored by Shane Hathaway's avatar Shane Hathaway

Until now, Medusa FTP passive mode sockets were blocking. Fixed.

parent 488d94d7
......@@ -5,7 +5,7 @@
# All Rights Reserved.
#
RCS_ID = '$Id: ftp_server.py,v 1.19 2002/03/21 15:48:53 htrd Exp $'
RCS_ID = '$Id: ftp_server.py,v 1.20 2002/04/08 17:03:57 shane Exp $'
# An extensible, configurable, asynchronous FTP server.
#
......@@ -832,6 +832,7 @@ class passive_acceptor (asyncore.dispatcher):
def handle_accept (self):
conn, addr = self.accept()
conn.setblocking(0)
dc = self.control_channel.client_dc
if dc is not None:
dc.set_socket (conn)
......
......@@ -5,7 +5,7 @@
# All Rights Reserved.
#
RCS_ID = '$Id: ftp_server.py,v 1.19 2002/03/21 15:48:53 htrd Exp $'
RCS_ID = '$Id: ftp_server.py,v 1.20 2002/04/08 17:03:57 shane Exp $'
# An extensible, configurable, asynchronous FTP server.
#
......@@ -832,6 +832,7 @@ class passive_acceptor (asyncore.dispatcher):
def handle_accept (self):
conn, addr = self.accept()
conn.setblocking(0)
dc = self.control_channel.client_dc
if dc is not None:
dc.set_socket (conn)
......
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