GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ChannelOption.SO_BACKLOG calls setSendBufferSize in DefaultSctpServerChannelConfig · Issue #16713 · netty/netty

ChannelOption.SO_BACKLOG calls setSendBufferSize in DefaultSctpServerChannelConfig #16713

New issue
Copy link
New issue
Copy link
Closed
#16714
Closed
ChannelOption.SO_BACKLOG calls setSendBufferSize in DefaultSctpServerChannelConfig#16713
#16714
Copy link
Milestone
4.2.13.Final

Description

@perrinmorrow
perrinmorrow
opened on Apr 28, 2026
Issue body actions

A bug appears to have been introduced to 4.1 and 4.2 by PRs #15965 and #15964, where the wrong method is being called for the SO_BACKLOG channel option in io.netty.channel.sctp.DefaultSctpServerChannelConfig:

    @Override
    public <T> boolean setOption(ChannelOption<T> option, T value) {
        validate(option, value);

        if (option == ChannelOption.SO_RCVBUF) {
            setReceiveBufferSize((Integer) value);
        } else if (option == ChannelOption.SO_SNDBUF) {
            setSendBufferSize((Integer) value);
        } else if (option == ChannelOption.SO_BACKLOG) {
            setSendBufferSize((Integer) value);
        } else if (option == SctpChannelOption.SCTP_INIT_MAXSTREAMS) {
            setInitMaxStreams((SctpStandardSocketOptions.InitMaxStreams) value);
        } else {
            return super.setOption(option, value);
        }

        return true;
    }

This causes an exception to be thrown by JDK classes:

java.lang.UnsupportedOperationException: 'SO_SNDBUF' not supported
    at jdk.sctp/sun.nio.ch.sctp.SctpServerChannelImpl.setOption(SctpServerChannelImpl.java:363)
    at io.netty.channel.sctp.DefaultSctpServerChannelConfig.setSendBufferSize(DefaultSctpServerChannelConfig.java:110)
    at io.netty.channel.sctp.DefaultSctpServerChannelConfig.setOption(DefaultSctpServerChannelConfig.java:88)
    at io.netty.bootstrap.AbstractBootstrap.setChannelOption(AbstractBootstrap.java:491)
    at io.netty.bootstrap.AbstractBootstrap.setChannelOptions(AbstractBootstrap.java:483)
    at io.netty.bootstrap.ServerBootstrap.init(ServerBootstrap.java:136)
    at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:331)
    at io.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:292)
    at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:288)

Activity

  1. normanmaurer
    added this to the 4.2.13.Final milestone on Apr 28, 2026
  2. normanmaurer commented on Apr 28, 2026

    @normanmaurer
    normanmaurer
    on Apr 28, 2026
    Member
    More actions

    Great catch!

  3. normanmaurer
    added a commit that references this issue on Apr 28, 2026

    SCTP: Correctly handle SO_BACKLOG (#16714)

    6f207fe
  4. normanmaurer
    closed this as completedin #16714on Apr 28, 2026
  5. normanmaurer
    added a commit that references this issue on Apr 28, 2026

    Auto-port 4.1: SCTP: Correctly handle SO_BACKLOG (#16715)

    fef9135
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      • 4.2.13.Final

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.