[alibaba/tengine]Tengine master版本reuseport不生效

2024-07-10 921 views
8

使用master版本编译后,reuseport on;没有效果 [root@netemu ~]# ss -lnt State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 :::2222 :::*
LISTEN 0 128
:2222 :
LISTEN 0 511
:8080
:
LISTEN 0 2048
:80 *:_
[root@netemu ~]# /opt/websuite/tengine/sbin/nginx -v Tengine version: Tengine/2.2.0 (nginx/1.8.1)

但是2.1.1的版本就没有这个问题 [root@netemu websuite]# ss -lnt State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 1024 127.0.0.1:3306 :
LISTEN 0 128 :::2222 :::*
LISTEN 0 128 :2222 *:
LISTEN 0 2048 :80 *:
LISTEN 0 2048 :80 *:
LISTEN 0 2048 :80 *:
LISTEN 0 2048 :80 *:
LISTEN 0 2048 :80 *:
LISTEN 0 2048 :80 *:
[root@netemu websuite]# /opt/websuite/tengine/sbin/nginx -v Tengine version: Tengine/2.1.1 (nginx/1.6.2)

是不是master版本的bug啊

回答

8

master版本最简单的编译,发现reuseport也没tengine 2.1.1 2.1.2中的效果,还请大拿指导

1

@cfsego @chobits 还请大神指点,是不是master里实现reuseport的方式不同,又或者是我理解有误