Home:ALL Converter>Setting listen() backlog to 0

Setting listen() backlog to 0

Ask Time:2011-03-01T01:32:55         Author:Matt Dunn

Json Formatter

When listening on a socket, I would ideally like to limit the backlog to zero, i.e.

listen( socket, 0 );

However, based on the following post, listen() ignores the backlog argument?, this wouldn't work. Is there any way I can reliably achieve a backlog of 0?

Author:Matt Dunn,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/5145392/setting-listen-backlog-to-0
yy