justify use of select

This commit is contained in:
yrutschle 2021-04-21 08:43:21 +02:00
parent a0f9fc164e
commit 0a00220b42

View File

@ -20,6 +20,14 @@
*/
/* Why use select(2) rather than poll(2)?
* No real reason except that's how it was written at first. This article:
* https://daniel.haxx.se/docs/poll-vs-select.html suggests that over a few
* hundred file descriptors, both become very slow, so there is little
* incentive to move to poll() to support more than FD_SETSIZE (which is 1024
* on many Linux. To support large numbers of descriptors, either use the fork
* version, or we'll have to write a new version based on libev. */
#define __LINUX__
#include "common.h"