gridsah
V2EX  ›  FreeBSD

Nginx 在 FreeBSD 下不支持 reuseport 这个特性的 bug 修了没 ? 求解,我不知道去哪找。

  •  
  •   gridsah · Aug 6, 2021 · 3221 views
    This topic created in 1924 days ago, the information mentioned may be changed or developed.

    记得 16 年好像看到说 nginx 开发时候曲解了 freebsd 的内核参数导致新特性不能用?

    现在这个 bug 修了没?我 google 了一圈没有结果....

    gridsah
    gridsah
    OP
    Aug 6, 2021
    1
    找到了。Nginx 的 changelog 里显示 2018 年把这个 Bug 给修了....

    Changes with nginx 1.15.1 03 Jul 2018

    *) Feature: the "random" directive inside the "upstream" block.

    *) Feature: improved performance when using the "hash" and "ip_hash"
    directives with the "zone" directive.

    *) Feature: the "reuseport" parameter of the "listen" directive now uses
    SO_REUSEPORT_LB on FreeBSD 12.

    *) Bugfix: HTTP/2 server push did not work if SSL was terminated by a
    proxy server in front of nginx.

    *) Bugfix: the "tcp_nopush" directive was always used on backend
    connections.

    *) Bugfix: sending a disk-buffered request body to a gRPC backend might
    fail.
    gridsah
    gridsah
    OP
    Aug 18, 2021❤️1
    2
    记录一下为后来人排个坑。

    截至目前,FreeBSD 13 上 reuseport 模块功能正常,但是没有 ngx_stream_proxy_module 模块,所以 proxy protocol 还没法用。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2432 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 12:19 · PVG 20:19 · LAX 04:19 · JFK 07:19
    ♥ Do have faith in what you're doing.