netty / netty-incubator-transport-io_uring

Apache License 2.0
195 stars 39 forks source link

Catch completion handler errors #244

Closed chrisvest closed 6 months ago

chrisvest commented 6 months ago

Motivation: We need to catch exceptions from event completions, like epoll and kqueue does. Otherwise the exceptions can propagate to the event loop thread and kill it. This makes it appear stuck or shut down.

Modification: Catch and log exceptions thrown by IOUringEventLoop.handle.

Result: The event loop should not get stuck or shut down when a completion event throws an exception.