mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-12 23:27:15 +03:00
justify use of select
This commit is contained in:
parent
a0f9fc164e
commit
0a00220b42
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user