No, as the syscall will just fail anyway so there is no reason to check :)

> Am 12.04.2014 um 01:17 schrieb Trustin Lee <notifications@github.com>:
> 
> In transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollServerSocketChannelConfig.java:
> 
> > +    /**
> > +     * Returns {@code true} if the SO_REUSEPORT option is set.
> > +     */
> > +    public boolean isReusePort() {
> > +        return Native.isReusePort(channel.fd) == 1;
> > +    }
> > +
> > +    /**
> > +     * Set the SO_REUSEPORT option on the underlying Channel. This will allow to bind multiple
> > +     * {@link EpollSocketChannel}s to the same port and so accept connections with multiple threads.
> > +     *
> > +     * Be aware this method needs be called before {@link EpollSocketChannel#bind(java.net.SocketAddress)} to have
> > +     * any affect.
> > +     */
> > +    public EpollServerSocketChannelConfig setReusePort(boolean reusePort) {
> > +        Native.setReusePort(channel.fd, reusePort ? 1 : 0);
> Should we check the kernel version before getting/setting this? Another thing to consider is that some vendors might have backported SO_REUSEPORT to an older kernel, so simply relying on uname() might not always work.
> 
> —
> Reply to this email directly or view it on GitHub.