Re: [Twisted-Python] Error: filedescriptor out of range in select

2010-03-23 Thread Don Schoeman
Hi John, I think that is exactly what might be happening. The GPRS devices are all configured to drop their connections after communication is done but I could see the number of connections growing until the server would finally fall over. I have now built in an in-activity check and will clos

Re: [Twisted-Python] Error: filedescriptor out of range in select

2010-03-19 Thread John Aherne
I think you will find that gprs devices will drop off the network but the router will still keep the coonection open. The gprs device will then reconnect on a different connection and port. So you will need to clean up old connections used by that device. Hope that helps John Aherne On Fri, Mar

Re: [Twisted-Python] Error: filedescriptor out of range in select

2010-03-19 Thread Don Schoeman
Hi Andrew, thanks for taking the time to comment on my email. I'm going to have to study your proposal to switch to poll/epoll anyway since I am expecting more and more connections to be made over time. This particular application is used to communicate with a bunch of GPRS devices and I'm sta

Re: [Twisted-Python] Error: filedescriptor out of range in select

2010-03-19 Thread Andrew Bennetts
Don Schoeman wrote: >Hi guys, I have started having this problem a few weeks ago and it >happens about once a week after which I have to restart my Twisted >based server to function again. It seems to be happening when I >make RPC calls using twisted.web.xmlrpc.Proxy. I have reason

[Twisted-Python] Error: filedescriptor out of range in select

2010-03-19 Thread Don Schoeman
Hi guys, I have started having this problem a few weeks ago and it happens about once a week after which I have to restart my Twisted based server to function again. It seems to be happening when I make RPC calls using twisted.web.xmlrpc.Proxy. I have reason to believe that I am either running