Re: [gnet] simultaneous asynchronic connections



On Wednesday 04 February 2004 12:06, Hubert Sokołowski wrote:

> what is the limit of maximum asynchronous connections for client in
> gnet-2.0.4? I can only do about 1k connections at the same time, but I
> don't know if this is a gnet problem or server I am connecting to.

I very much doubt that this is an internal gnet limit.

There is a system limit for the maximum number of file descriptors that a user 
on the system can have open at the same time. You can see this limit when you 
type

% ulimit -n

in a bash shell (different for other shells).

This limit seems to be 1024 by default on a lot of systems, so if you want 
more concurrent connections you will probably need to change this setting in 
your system settings [*].

Of course it is also possible that the same limit applies to the server.

Cheers
-Tim

[*] for what it's worth, you can find some pointers on how and where to change 
that limit on your system here: 
http://ed2k-gtk-gui.sourceforge.net/docs/en-5.html#ss5.20





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]