diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-15 19:29:03 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-15 23:12:00 +0100 |
commit | 10cdee3bc55274d7f6278cdd0c66edacb5b520a5 (patch) | |
tree | 6600c23e0735cc5fdb8af0512572ad6631bc584d /src/sock.c | |
parent | 0c8275a90ed16c4230fb311aebbf34c5667667c7 (diff) |
prepare transition to poll()
usage of select() is inefficient (because a huge fd_set array has to
be initialized on each call) and insecure (because an fd >= FD_SETSIZE
will cause out-of-bounds accesses using the FD_*SET macros, and a system
can be set up to allow more than that number of fds using ulimit).
for the moment we prepared a poll-like wrapper that still runs select()
to test for regressions, and so we have fallback code for systems without
poll().
Diffstat (limited to 'src/sock.c')
0 files changed, 0 insertions, 0 deletions