socketry / nio4r

Cross-platform asynchronous I/O primitives for scalable network clients and servers.
Other
966 stars 86 forks source link

Are epoll/kqueue not supported? #285

Closed solidiquis closed 2 years ago

solidiquis commented 2 years ago

Perhaps I'm dense, but the documentation suggests that backends other than POSIX's select are supported, however this suggest otherwise? https://github.com/socketry/nio4r/blob/5873ab213990f9ae410a832025dbab130ebf4a50/lib/nio/selector.rb#L17

How do I leverage epoll/kqueue if NIO::Selector raises if I provided any backend other than :ruby?

ioquatix commented 2 years ago

You are looking at the pure ruby implementation. It's definitely supported and the default:

image
solidiquis commented 2 years ago

Thanks @ioquatix