[Zope-Checkins] CVS: Zope/ZServer/medusa - ftp_server.py:1.20

Shane Hathaway shane@cvs.zope.org
Mon, 8 Apr 2002 13:03:58 -0400


Update of /cvs-repository/Zope/ZServer/medusa
In directory cvs.zope.org:/tmp/cvs-serv8760

Modified Files:
	ftp_server.py 
Log Message:
Until now, Medusa FTP passive mode sockets were blocking.  Fixed.

=== Zope/ZServer/medusa/ftp_server.py 1.19 => 1.20 ===
     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)