Please sign in to comment.
listen: increase the default backlog to 128
Increase the default listenq to 128 (the standard max for most systems). Values exceeding the system limit are truncated to the system max. The behaviour of 0 and negative numbers is system dependent. UNP says about the backlog: Historically, sample code always shows a backlog of 5, as that was the maximum value supported by 4.2BSD. This was adequate in the 1980s when busy servers would handle only a few hundred connections per day. But with the growth of the World Wide Web (WWW), where busy servers handle millions of connections per day, this small number is completely inadequate. Busy HTTP servers must specify a much larger backlog, and newer kernels must support larger values.
- Loading branch information...