Get the most out of your Centmin Mod LEMP stack
Become a Member

Stable Branch fix menu 4 reuseport and fastopen listen edits on kernels rejecting S…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 24, 2026 at 6:04 PM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,620
    12,635
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,302
    Local Time:
    8:38 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix menu 4 reuseport and fastopen listen edits on kernels rejecting SO_REUSEPORT in 132.00stable

    nginx fails to start when the kernel rejects setsockopt(SO_REUSEPORT), and
    nginx -t does not catch it, so reuseport is now added only after a socket
    probe on the running kernel accepts it. Enabling fastopen only matched a
    literal backlog=2048 listen line, so autotuned backlog lines never got
    fastopen=256, and disabling it left the running sysctl value unchanged.

    Changes:
    - nginx_configure.inc: ngx_version_modern() compares nginx versions
    numerically instead of as strings
    - ngx_kernel_reuseport() probes SO_REUSEPORT; reuseport is removed from
    virtual.conf when the kernel rejects it and re-added only when accepted
    - cpcheck.inc: reuseportchecks() skips reuseport on kernels that reject it
    - fastopen.inc: add fastopen=256 once to the listen 80 default_server line
    whatever its backlog and options, remove only that exact value when
    disabled, and reset the running net.ipv4.tcp_fastopen to 1 when the
    sysctl file is removed
    - remove an unused reuseport check block

    Continue reading...

    132.00stable branch