Re: 'Address already in use' ... with TCPServer

2009-01-30 Thread Gabriel Genellina
En Fri, 30 Jan 2009 10:44:22 -0200, Gabriel Genellina escribió: Sorry the duplicate post! I've seen that some of my messages come twice. I'll try to diagnose and fix the problem (if possible...). -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: 'Address already in use' ... with TCPServer

2009-01-30 Thread Gabriel Genellina
En Fri, 30 Jan 2009 10:16:42 -0200, Giampaolo Rodola' escribió: On 30 Gen, 10:16, "Gabriel Genellina" wrote: En Fri, 30 Jan 2009 05:43:33 -0200, Mabooka-Mabooka Mbe-Mbe   escribió: >   setsockopt(REUSEADDR)... s.allow_reuse_address=1 > should do the trick. It's too late then; bind()

Re: 'Address already in use' ... with TCPServer

2009-01-30 Thread Gabriel Genellina
En Fri, 30 Jan 2009 10:16:42 -0200, Giampaolo Rodola' escribió: On 30 Gen, 10:16, "Gabriel Genellina" wrote: En Fri, 30 Jan 2009 05:43:33 -0200, Mabooka-Mabooka Mbe-Mbe   escribió: >   setsockopt(REUSEADDR)... s.allow_reuse_address=1 > should do the trick. It's too late then; bind()

Re: 'Address already in use' ... with TCPServer

2009-01-30 Thread Giampaolo Rodola'
On 30 Gen, 10:16, "Gabriel Genellina" wrote: > En Fri, 30 Jan 2009 05:43:33 -0200, Mabooka-Mabooka Mbe-Mbe   > escribió: > > >   setsockopt(REUSEADDR)... > > > What I came up with so far is this: > from SocketServer import * > s = TCPServer( ('', 32123), None) > dir(s) > > ['Reques

Re: 'Address already in use' ... with TCPServer

2009-01-30 Thread Gabriel Genellina
En Fri, 30 Jan 2009 05:43:33 -0200, Mabooka-Mabooka Mbe-Mbe escribió: setsockopt(REUSEADDR)... What I came up with so far is this: from SocketServer import * s = TCPServer( ('', 32123), None) dir(s) ['RequestHandlerClass', '__doc__', '__init__', '__module__', 'address_family', 'allow_re

'Address already in use' ... with TCPServer

2009-01-29 Thread Mabooka-Mabooka Mbe-Mbe
Hi all, I bet everybody knows exactly what I am about to ask about: ''' A server serves for a while, then drops on its knees, tries to restart, but... the port is busy, the TCP says "Address already in use". ''' And, I think I know the answer: setsockopt(REUSEADDR)... The problem is: I a