-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
怎么关闭长连接呢? #919
Comments
前端还是后端长连接?你是怎么判断不行的? |
后端,我是通过查看 ss 查看tcp 连接还是 ESTAB 状态。 看起来也不会很快释放。而且要等待好久。所以,这设置是不是没有效果呢? |
http://tengine.taobao.org/document/http_upstream_keepalive_timeout.html |
不是,是全局的在http{} |
全局的keepalive_timeout不负责后端的长连接的. |
我看是传输完了,不是websocket 是通过跳转的形式。很快就跳转完了,我只是写了一个server { fastcgi_pass } 也没有其他的情况 |
麻烦贴一下配置 |
@yaoweibin 您好,我也遇到类似的问题,情况是这样的: 麻烦有时间看下我的问题谢谢了!! |
@taoyuanyuan 也麻烦您有时间看下我的问题,谢谢了!! |
@senzi1988 你可以先抓包看看这个ES是不是一直有数据在传输?
|
@taoyuanyuan 感谢对问题的关注! |
@senzi1988 |
@taoyuanyuan |
把如上脚本保存为文件 dump_connection.gdb
进行如下指令:
进入gdb界面:
然后把结果贴出来看看 |
hi , 确认下是否有连接泄露,执行如下命令:
|
感谢 @taoyuanyuan @chobits 对问题的关注: 执行完 dump_connection.gdb 输出以下结果: 执行完 ss -tan -o state close-wait 输出以下结果:
|
老版本有h2泄露,最新版本已经修复,请查看。 Tengine-2.3.0 has been released, it has been been upgraded to nginx 1.15.9. For more details of new version, see #1220. |
我设置keepalive_timeout 0 都不行
The text was updated successfully, but these errors were encountered: