microsoft / xdp-for-windows

XDP speeds up networking on Windows
MIT License
371 stars 41 forks source link

Add AF_XDP wait cancellation #43

Closed mtfriesen closed 2 years ago

mtfriesen commented 2 years ago

Currently there is no API for AF_XDP wait cancellation - only thread termination will reliably abort a wait. Apps can also close the handle, but that introduces a race condition between the wait thread and closehandle thread.

Consider a separate IOCTL that cancels the current/next wait on the socket.

dthaler commented 2 years ago

What does Linux have here?

mtfriesen commented 2 years ago

I'm not sure if epoll is supported by AF_XDP sockets on Linux - looking into that will be a good place to start.