[stunnel-users] too many file descriptors
Michal Trojnara
Michal.Trojnara at mobi-com.net
Sat Apr 22 16:01:00 CEST 2006
Sligar, Benjamin wrote:
> #define MAX_FD 64
>
> I didn't find a relation to any configurable options,
> so I made a change to this parameter in the code,
> recompiled, and, I was able to start up all of my
> listens without error.
It's fine to change this parameter.
The only reason it's not higher by default is memory usage:
Each file descriptor takes 8 bytes of memory for each connection. For
FD_MAX=1000 and 500 concurrent connections it makes 4,000,000 bytes.
What is the reasonable value in your opinion?
Best regards,
Mike
More information about the stunnel-users
mailing list