listen
, the important parameter is backlog
for increasing the number of simultaneous connections that you are willing to accept
simultaneously. During handling each accept
'ed connection, you would want the program to do this as quickly as possible (because there can only be #backlog
accept
s running at the same time). To handle quickly you could spawn off new threads or have a thread pool that is doing the work. That architecture is up to you.