[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/FTP - PassiveAcceptor.py:1.1.2.3

Shane Hathaway shane@cvs.zope.org
Mon, 8 Apr 2002 16:32:17 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Server/FTP
In directory cvs.zope.org:/tmp/cvs-serv18436

Modified Files:
      Tag: Zope3-Server-Branch
	PassiveAcceptor.py 
Log Message:
Made sure data connections don't block. 


=== Zope3/lib/python/Zope/Server/FTP/PassiveAcceptor.py 1.1.2.2 => 1.1.2.3 ===
     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)
@@ -75,3 +76,4 @@
         else:
             self.ready = conn, addr
         self.close()
+