On Mar 17, 2009, at 10:04 AM, Laszlo Nagy wrote:
This is a long running process, written in Python. Only standard lib
is used. This process accepts connections on TCP sockets, read/write
data.
After about one day, it starts throwing this when I try to connect:
2009-03-17 09:49:50,096 INFO .accesspoint0 ('127.0.0.1', 55510)
connecting
2009-03-17 09:49:50,097 ERROR .accesspoint0 Traceback (most recent
call last):
File "/usr/local/www/vhosts/shopzeus.com/fantasy/sorb/accesspoints/
srvtcp.py", line 34, in handle_request
t = sorb.endpoint.SocketEndpoint(conn,self.router)
File "/usr/local/www/vhosts/shopzeus.com/fantasy/sorb/endpoint.py",
line 304, in __init__
StreamEndpoint.__init__(self,router)
File "/usr/local/www/vhosts/shopzeus.com/fantasy/sorb/endpoint.py",
line 133, in __init__
self.format = self.read_str() # determine remote format
File "/usr/local/www/vhosts/shopzeus.com/fantasy/sorb/endpoint.py",
line 236, in read_str
size = self.read_long()
File "/usr/local/www/vhosts/shopzeus.com/fantasy/sorb/endpoint.py",
line 222, in read_long
return struct.unpack(">q",self.read_data(8))[0]
File "/usr/local/www/vhosts/shopzeus.com/fantasy/sorb/endpoint.py",
line 344, in read_data
ready = select.select([fd], [], [], 0.2)
ValueError: filedescriptor out of range in select()
Hi Laszlo,
Just a hunch -- are you leaking file handles and eventually running out?
--
http://mail.python.org/mailman/listinfo/python-list