The next release of will probably bring not a single new feature, but focus on improvements, especially regarding . Support for using ( et al) to handle is a part of it (which is done and works). Still unsure whether I'll also add support for ' . Using kqueue also as a better backend for is on the list.

Another hopefully quite relevant change is here:

github.com/Zirias/poser/commit

In short, so far my lib was always awaiting readiness notification (from kqueue, or on Linux, or select/poll for other platforms) before doing any read or write on a socket. This is the ideal approach for reads, because in the common case, a socket is NOT ready for reading ... our kernel must have received something from the remote end first. But for writes, it's not so ideal. The common case is that a socket IS ready to write (because there's space left in the kernel's send buffers). So, just try it, and only register for notifications if it ever fails, makes more sense. Avoids pointless waiting and pointless events, and e.g. with epoll, even unnecessary syscalls. 馃槈

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.bsd.cafe/users/zirias/statuses/114466786504281271 on your instance and quote it. (Note that quoting is not supported in Mastodon.)