Minimizing Connection reset by peer exceptions

2005-10-19 Thread mirandacascade
This may be more of a socket question than a python question; not sure. Using this code to instantiate/connect/set options connectionHandle = socket.socket(socket.AF_INET, socket.SOCK_STREAM) errorStatus = connectionHandle.connect_ex((ipAddress, port)) connectionHandle.setsockopt(socket.SOL_SOCKET

Re: Minimizing Connection reset by peer exceptions

2005-10-20 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > Occasionally (perhaps 5% of the time) the following exception gets > raised: > > (10054, 'Connection reset by peer') Generally this just means the connection has closed through some unusual means, perhaps by being turned off, or a network cable being unplugged, or a ti

Re: Minimizing Connection reset by peer exceptions

2005-10-20 Thread Steve Holden
Ben Sizer wrote: > [EMAIL PROTECTED] wrote: > > >>Occasionally (perhaps 5% of the time) the following exception gets >>raised: >> >>(10054, 'Connection reset by peer') > > > Generally this just means the connection has closed through some > unusual means, perhaps by being turned off, or a netwo

Re: Minimizing Connection reset by peer exceptions

2005-10-20 Thread Ben Sizer
Steve Holden wrote: > Do note, though, that if you aren't using some means (threading, > forking, etc) of handling the connections asynchronously then your > server will normally only queue a very limited number of connections > (usually 5 at most). The example given by the original poster seeme