• Linus Nordberg's avatar
    Use a listen(2) backlog of 128. · 950306fc
    Linus Nordberg authored
    There's a chance that incoming (legitimate) connections arrive faster
    than what it takes to spawn a new thread and get back to
    listen(). Therefore we should ask the stack to queue at least one
    entry, i.e. use a backlog value of at least 1. There's arguable also a
    chance of more than two concurrent incoming connections, which would
    make a case for a backlog value greater than one.
    
    A reasonable high value seems to be 128, which also is what SOMAXCONN
    is on many unix systems. In the choice between 1 and 128, an argument
    against the higher value is that it may mask the potential problem of
    spending a long time serving incoming connections.
    
    Being reasonably confident that radsecproxy is efficient when it comes
    to serving incoming connections, by handing them off to a newly
    spawned thread, I think that 128 is a fine choice.
    
    Closes RADSECPROXY-72.
    950306fc
Name
Last commit
Last update
packaging Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
THANKS Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
catgconf.c Loading commit data...
configure.ac Loading commit data...
debug.c Loading commit data...
debug.h Loading commit data...
develdoc.txt Loading commit data...
dtls.c Loading commit data...
dtls.h Loading commit data...
dynsrv.sh Loading commit data...
fticks.c Loading commit data...
fticks.h Loading commit data...
fticks_hashmac.c Loading commit data...
fticks_hashmac.h Loading commit data...
gconfig.c Loading commit data...
gconfig.h Loading commit data...
gconfig.txt Loading commit data...
hash.c Loading commit data...
hash.h Loading commit data...
hostport.c Loading commit data...
hostport.h Loading commit data...
list.c Loading commit data...
list.h Loading commit data...
main.c Loading commit data...
radmsg.c Loading commit data...
radmsg.h Loading commit data...
radsecproxy-hash.1 Loading commit data...
radsecproxy-hash.c Loading commit data...
radsecproxy.1 Loading commit data...
radsecproxy.c Loading commit data...
radsecproxy.conf-example Loading commit data...
radsecproxy.conf.5.xml Loading commit data...
radsecproxy.h Loading commit data...
tcp.c Loading commit data...
tcp.h Loading commit data...
tls.c Loading commit data...
tls.h Loading commit data...
tlscommon.c Loading commit data...
tlscommon.h Loading commit data...
tlv11.c Loading commit data...
tlv11.h Loading commit data...
udp.c Loading commit data...
udp.h Loading commit data...
util.c Loading commit data...
util.h Loading commit data...