Subject: | Use accept4 instead of accept by default where available? |
Since everything in IO::Async should probably be O_NONBLOCK by default, and sane close-on-exec handling is at least a nice-to-have, any chance of (IO::Async::OS::linux?) using accept4() instead of accept()?
http://linux.die.net/man/2/accept4
Might be something that has to be plumbed in at IO::Socket::IP or lower levels, alternatively there's a couple of implementations of accept4() floating around on CPAN if this would be better as a "use it if we have it" feature.
(obviously needs SOCK_NONBLOCK | SOCK_CLOEXEC flags to make any difference)
cheers,
Tom