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.<div>
<br></div><div>Hope that helps</div><div><br></div><div>John Aherne</div><div><br><br><div class="gmail_quote">On Fri, Mar 19, 2010 at 2:53 PM, Don Schoeman <span dir="ltr">&lt;<a href="mailto:don@delphexonline.com">don@delphexonline.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  

<div bgcolor="#ffffff" text="#000000">
<font face="Arial">Hi Andrew, thanks for taking the time to comment on
my email.<br>
<br>
I&#39;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&#39;m starting to think that these devices might not be
closing a connection properly which could perhaps lead to this
particular problem. I am going to discuss it with the manufacturers of
these devices as well.<br>
<br>
Thanks again for your help.<br>
<br>
Kind Regards,<br><font color="#888888">
Don<br>
<br>
</font></font><div><div></div><div class="h5"><br>
Andrew Bennetts wrote:
<blockquote type="cite">
  <pre>Don Schoeman wrote:
  </pre>
  <blockquote type="cite">
    <pre>   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 out of file handles or connection
   limits. I have up-sized my connection limits and ulimit -n  gives
   me 9000.
    </pre>
  </blockquote>
  <pre>Note though that select() has a builtin limit, which varies by platform
but is probably 1024 for you.  So perhaps try the poll or epoll reactor
instead.

  </pre>
  <blockquote type="cite">
    <pre>   I receive less than 30 connections though so there must be some
   kind of leak. The error I&#39;m getting is the following:
    </pre>
  </blockquote>
  <pre>30 is much less than 1024, though, so a leak does sound probable.

[...]
  </pre>
  <blockquote type="cite">
    <pre>   Now I know this is a very generic error and it could mean a lot of
   things, but how would I even start tracking the leak down? Is there
   a way I can try and track the number of file descriptors?
    </pre>
  </blockquote>
  <pre>There&#39;s always strace, or looking in /proc/PID/fd.

  </pre>
  <blockquote type="cite">
    <pre>   I am using Twisted version 8.2.0 on Ubuntu Server Edition 9.10
    </pre>
  </blockquote>
  <pre>Maybe try upgrading Twisted, preferably to 10.0.0?  I&#39;m not sure if a
bug related to your problems was fixed since 8.2.0, but a lot of bugs
have been fixed in that ~2 years.  Hopefully there&#39;s a PPA somewhere
with a newer Twisted for your version of Ubuntu.

-Andrew.


_______________________________________________
Twisted-Python mailing list
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.com</a>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>

  </pre>
</blockquote>
</div></div></div>


<br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br></div>