V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
gridsah
V2EX  ›  FreeBSD

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

  •  
  •   gridsah · 2021-08-06 14:29:38 +08:00 · 1382 次点击
    这是一个创建于 965 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    gridsah
        1
    gridsah  
    OP
       2021-08-06 14:40:01 +08:00
    找到了。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
       2021-08-18 13:31:33 +08:00   ❤️ 1
    记录一下为后来人排个坑。

    截至目前,FreeBSD 13 上 reuseport 模块功能正常,但是没有 ngx_stream_proxy_module 模块,所以 proxy protocol 还没法用。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3285 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 14:13 · PVG 22:13 · LAX 07:13 · JFK 10:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.