[DGD]Max number of connections per port

Felix A. Croes felix at dworkin.nl
Thu Jun 24 18:09:45 CEST 1999


Marc Spoorendonk <marc at freud.et.tudelft.nl> wrote:

> On Wed, 23 Jun 1999, Michael Bergbauer wrote:
> > On 23-Jun-99 Marc Spoorendonk wrote:
> > > Hi,
> > > 
> > > What is the maximum number of connections that can be opened through one
> > > port in C? And in LPC (DGD)? I thought that there was a max of 254 open
> > > filedescriptors?
> > > 
> > > Oh, we are (of course) talking LINUX here.
> > 
> > We once tested it with a simple loop containing a call to connect, and there
> > were no more then 80 or 85 connections with that method, not even reaching the
> > (configured) limit of 100, the mud is hosted on a linux box, and the testing
> > system was a sun.
>
> Hmm, intresting, and what do you think was the reason that you couldn't
> reach the limit? To many open filedescriptors or did it crash or what
> happened?

I do not know the particulars for Linux, but normally the maximum
depends on the maximum number of file descriptors that a single process
can have, (limit -h, or ulimit -a -H shows this limit) as well as the
number of file descriptors that can be used in a single select() call.
It should be possible to increase both by recompiling the kernel with
the appropriate changes.


> And what is the maximum limit that you can (theoretically) configure?

The limit is 255 simultaneous connections.  I may increase this to
65535 before I release version 1.2.  Acuity/ichat's version of DGD
already has a maximum of 65535.

Regards,
Dworkin

List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list