Hacker News new | ask | show | jobs
by dgb23 236 days ago
You can set read and write timeouts on TCP sockets:

https://linux.die.net/man/3/setsockopt

Zig has a posix API layer.