Re: socket freezes

2006-03-04 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you all for your suggestions. Luis P. Mendes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFECb5AHn4UHCY8rB8RAmeLAKCmSVfTvgQ94NPnJlD2QqdbMwVFXACdGFAh 8

Re: socket freezes

2006-03-04 Thread Steve Holden
Dennis Lee Bieber wrote: > On Fri, 03 Mar 2006 20:12:22 +, "Luis P. Mendes" > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > > > >>I'm beggining to suspect that the problem has to do with a discontinual >>of service of the ISP. It provides me a dynamic IP address not a

Re: socket freezes

2006-03-03 Thread [EMAIL PROTECTED]
Might want to check out the SO_REUSEADDR bit in sockets. I believe it helps with a problem of a program not notifying the OS that it's done with the port. Piece of a script (duh): host = "" port = 51423 #random for this example s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.setsockopt(s

Re: socket freezes

2006-03-03 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 | Try setting a default timeout on the socket, and if it times out | recontact the other system on a new socket. See socket.setdefaultimeout() | | regards | Steve Thank you for your answers. I'm beggining to suspect that the problem has to do with

Re: socket freezes

2006-03-03 Thread Steve Holden
Luis P. Mendes wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I've developed a program that uses a socket to receive information 24h a > ~ day. > > The problem is that the socket seems to freeze. By that I mean the > program stops getting information but doesn't raise any

Re: socket freezes

2006-03-03 Thread Rene Pijlman
Luis P. Mendes: >I've developed a program that uses a socket to receive information 24h a >~ day. > >The problem is that the socket seems to freeze. By that I mean the >program stops getting information but doesn't raise any error. That's weird. There's probably a bug in your program. >I tried t

socket freezes

2006-03-03 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've developed a program that uses a socket to receive information 24h a ~ day. The problem is that the socket seems to freeze. By that I mean the program stops getting information but doesn't raise any error. I tried to solve this by writing t