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

2021-08-06 14:29:38 +08:00
 gridsah

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

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

1431 次点击
所在节点    FreeBSD
2 条回复
gridsah
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
2021-08-18 13:31:33 +08:00
记录一下为后来人排个坑。

截至目前,FreeBSD 13 上 reuseport 模块功能正常,但是没有 ngx_stream_proxy_module 模块,所以 proxy protocol 还没法用。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/794084

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX