On Sat, 31 Oct 2026 05:37:23 -0000 (UTC)
Lawrence =?iso-8859-13?q?D=FFOliveiro?= <l…@nz.invalid> gabbled:
>Here’s a fun little thing: if you set a socket to nonblocking and then
>do the connect(2) call, it will seemingly fail with an EINPROGRESS
>error. But in fact, the connection attempt gets initiated, and you can
>monitor its subsequent progress from your event loop.
Far too many devs don't know about or don't understand multiplexing using
select() or poll(). Admittedly these are borked on Windows as you can't
use sockets with them which is their main raison d'etre, but on unix they're a
very powerful tool. For simple servers with a low workload they can allow
single threaded development simplifying the code immensely.