Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务器端口配置期望支持socket unix://协议 #39

Open
ghost opened this issue Mar 29, 2017 · 0 comments
Open

服务器端口配置期望支持socket unix://协议 #39

ghost opened this issue Mar 29, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 29, 2017

load balancer <=> nginx <=> swoole fastcgi 模式。

lb 与 nginx 保持长连接。而 nginx 与 swoole fastcgi 暂时无法保持长连接。
高并发时,如果使用 swoole tcp 模式,会受到临时端口数限制,如果没有及时清理,服务器上端口极有可能不够用。
建议 new swoole_server 时,支持配置成 /dev/shm/laravoole.sock 这样的unix socket 地址。

可以config直接配置成 listen,例如:

tcp://127.0.0.1:9050
unix:/dev/shm/laravoole.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants