mitchellh / libxev

libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.
MIT License
2.07k stars 74 forks source link

Add EAGAIN handling for accept #36

Closed RossComputerGuy closed 1 year ago

RossComputerGuy commented 1 year ago

Closes #35, this probably could be done better than how it is but this should be good enough.

mitchellh commented 1 year ago

Thanks, I'll take this temp fix for now if it gets you going. Sorry it took a bit.

RossComputerGuy commented 1 year ago

Sweet thanks, this should definitely help me. Not sure what a real fix would be considering not using async requires a packet to go through before allowing the thread or program to exit.