netty5/transport-native-epoll/src
Norman Maurer 97f5b43a3e Only try to obtain SO_LINGER on close if fd is still open.
Motivation:

When try to get SO_LINGER from a fd that is closed an Exception is thrown. We should only try to get SO_LINGER if the fd is still open otherwise an Exception is thrown that can be ignored anyway.

Modifications:

First check if the fd is still open before try to obtain SO_LINGER setting when get the closeExecutor. This is also the same that we do in the NIO transport.

Result:

No more exception when calling unsafe.close() on a channel that has a closed file descriptor.
2015-08-28 14:50:16 +02:00
..
main Only try to obtain SO_LINGER on close if fd is still open. 2015-08-28 14:50:16 +02:00
test/java/io/netty/channel/epoll ce6931e0e5 buffer leak in EpollSocketChannelTest 2015-08-21 11:29:15 -07:00