Uncatched RejectedExecutionException on IOCP thread will crash the whole app after eventloop is stopped
yyjdelete opened this issue · comments
SilverFox commented
Unlike DotNetty, SpanNetty will throw RejectedExecutionException when try to submit to a eventloop after it's stopped.
But unluckly it's not catched on callback of IOCP, then it will leak to threadpool, and crashes the whole app.
(You can close all connected channel before close eventloop. But for connecting channel you can't do anything before it's timeout (if the dest is unavailable))
SpanNetty/src/DotNetty.Transport/Channels/Sockets/AbstractSocketChannel.cs
Lines 232 to 286 in 472de8b