Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNDBFR unset #7

Open
dmart28 opened this issue Nov 7, 2015 · 2 comments
Open

SNDBFR unset #7

dmart28 opened this issue Nov 7, 2015 · 2 comments
Labels

Comments

@dmart28
Copy link
Contributor

dmart28 commented Nov 7, 2015

Hi!

private DatagramChannel ceateSocket(boolean block, int port) throws IOException {
        DatagramChannel channel = DatagramChannel.open(StandardProtocolFamily.INET)
                .setOption(StandardSocketOptions.SO_REUSEADDR, true)
                .setOption(StandardSocketOptions.IP_MULTICAST_IF, iface)
                .setOption(StandardSocketOptions.SO_RCVBUF, conf.getSocketReceiveBufferSize())
                .setOption(StandardSocketOptions.IP_TOS, conf.getTrafficClass())
                .setOption(StandardSocketOptions.IP_MULTICAST_LOOP, conf.isLoopBack())
                .setOption(StandardSocketOptions.IP_MULTICAST_TTL, conf.getTtl())
                .bind(new InetSocketAddress(port));
        channel.configureBlocking(block);
        return channel;
    }

It seems there is not set for StandardSocketOptions.SO_SNDBFR. Is it kind of bug, or it is set somewhere else?

@RuedigerMoeller
Copy link
Owner

That's probably an ugly fat bug (originally I had different method for creating send and receive socket). I remember wondering why modifying the size of sendbuffer does not make a difference ..

Thanks again, I'll fix that with 3.11

@dmart28
Copy link
Contributor Author

dmart28 commented Nov 8, 2015

Yeah, glad to help with that one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants