900db0acff
Motivation: We need to break out of the read loop for two reasons: - If the input was shutdown in between (which may be the case when the user did it in the fireChannelRead(...) method we should not try to read again to not produce any miss-leading exceptions. - If the user closes the channel we need to ensure we not try to read from it again as the filedescriptor may be re-used already by the OS if the system is handling a lot of concurrent connections and so needs a lot of filedescriptors. If not do this we risk reading data from a filedescriptor that belongs to another socket then the socket that was "wrapped" by this Channel implementation. Modification: Break the reading loop if the input was shutdown from within the channelRead(...) method. Result: No more meaningless exceptions and no risk to read data from wrong socket after the original was closed. Conflicts: transport-native-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java |
||
---|---|---|
.. | ||
src | ||
pom.xml | ||
README.md |
Native transport for Linux
See our wiki page.