Hi,
I'm writing a small asyncore-based server application serving a lot of
clients. When I have to handle more than 1021 client simoultaneously
the 'binded' socket object raises an error:
[...]
connections: 1018
connections: 1019
connections: 1020
connections: 1021
Traceback (most recent call last):
File "asyncore_clien t.py", line 31, in <module>
File "asyncore.p y", line 191, in loop
File "asyncore.p y", line 138, in poll
File "asyncore.p y", line 80, in write
File "asyncore.p y", line 76, in write
File "asyncore.p y", line 395, in handle_write_ev ent
File "asyncore_clien t.py", line 24, in handle_connect
File "asyncore_clien t.py", line 9, in __init__
File "asyncore.p y", line 257, in create_socket
File "socket.py" , line 156, in __init__
socket.error: (24, 'Too many open files')
I just wanna know: is there a way to know how many connections can
accept a 'binded' socket BEFORE getting such error? Maybe
socket.SOMAXCON N could help me?
Thanks in advance.
I'm writing a small asyncore-based server application serving a lot of
clients. When I have to handle more than 1021 client simoultaneously
the 'binded' socket object raises an error:
[...]
connections: 1018
connections: 1019
connections: 1020
connections: 1021
Traceback (most recent call last):
File "asyncore_clien t.py", line 31, in <module>
File "asyncore.p y", line 191, in loop
File "asyncore.p y", line 138, in poll
File "asyncore.p y", line 80, in write
File "asyncore.p y", line 76, in write
File "asyncore.p y", line 395, in handle_write_ev ent
File "asyncore_clien t.py", line 24, in handle_connect
File "asyncore_clien t.py", line 9, in __init__
File "asyncore.p y", line 257, in create_socket
File "socket.py" , line 156, in __init__
socket.error: (24, 'Too many open files')
I just wanna know: is there a way to know how many connections can
accept a 'binded' socket BEFORE getting such error? Maybe
socket.SOMAXCON N could help me?
Thanks in advance.
Comment