[ZCM] [ZC] 661/ 1 Request "medusa in solaris reusing addr"
Collector: Zope Bugs, Features, and Patches ...
zope-coders@zope.org
Tue, 05 Nov 2002 04:48:14 -0500
Issue #661 Update (Request) "medusa in solaris reusing addr"
Status Pending, ZServer/bug medium
To followup, visit:
http://collector.zope.org/Zope/661
==============================================================
= Request - Entry #1 by Anonymous User on Nov 5, 2002 4:48 am
I work with zope in solaris and when i try to make ftp-data to the same port ftp client hangs, i think the problem is that ftp-data sockets from the server to the client do not set the reuse_addr option correctly.
I changed this in the create_socket method of asyncore.py.
This appear to fix the bug.
def create_socket (self, family, type):
self.family_and_type = family, type
self.socket = socket.socket (family, type)
#changed by pbenitez, no reusa las direcciones
self.set_reuse_addr()
#end changed
self.socket.setblocking(0)
self._fileno = self.socket.fileno()
self.add_channel()
==============================================================