gridsah
V2EX  ›  FreeBSD

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

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

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

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

    gridsah
        1
    gridsah  
    OP
       Aug 6, 2021
    找到了。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
        2
    gridsah  
    OP
       Aug 18, 2021   ❤️ 1
    记录一下为后来人排个坑。

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