mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
* Assert ServerSocketChannel is not Blocking * Relates #43387 which appears to run into blocking accept calls
This commit is contained in:
parent
186c3122be
commit
5f87caa54c
@ -177,7 +177,9 @@ public abstract class ChannelFactory<ServerSocket extends NioServerSocketChannel
|
||||
|
||||
SocketChannel acceptNioChannel(ServerChannelContext serverContext) throws IOException {
|
||||
ServerSocketChannel rawChannel = serverContext.getChannel().getRawChannel();
|
||||
assert rawChannel.isBlocking() == false;
|
||||
SocketChannel socketChannel = accept(rawChannel);
|
||||
assert rawChannel.isBlocking() == false;
|
||||
if (socketChannel == null) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user