-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
splithttp使用nginx代理时GET请求会出现超时 #3856
Comments
试一下 #3819 |
|
这个GET方法不通的话当消耗完所有连接后,h3/h1就断流了,然后等待超时,配置5小时的话,那就要等待5小时才能恢复,这个问题不仅仅存在于nginx |
感觉可能是因为下行不活跃导致的 GET 超时,但这个超时应该是正常的吧
听起来怪怪的 |
这是nginx的access日志 |
这个断流的时候有测试过修改proxy_read_timeout 的值会影响恢复的时间,值越小恢复的越快 |
有一种可能是后方的 Xray 服务端和目标断开了连接,不再发数据给 Nginx 了,但没关闭到 Nginx 的 TCP,导致 Nginx 没关闭到 Xray 客户端的连接,Xray 客户端还以为连接正常?不过这个前置条件是怎么达成的,@mmmray 看下代码会不会这样 |
这倒是提醒了一件事,POST 到 Xray 服务端时如果出问题了,服务端应当把对应的 GET 也关掉 @mmmray
|
To 群里:h2 还没删啊,就加了个 h3,客户端 ALPN 选单独的 h3 才会炸 |
|
To Var.:根据你的描述可能是服务端 UDP 端口冲突,你检查下服务端 ALPN 里有没有写 h3,测试下是不是写了 h3 才会监听 UDP |
These kinds of bugs where xray would not close the transport properly if the wrapped VLESS stream has been closed (or the tunneled connection closed), they should've been fixed with #3710 I also have a similar setup like in xray-examples and don't run into this kind of issue. I wonder if there is a difference between nginx vs haproxy vs caddy. |
服务器端使用Xray-core v24.9.30版本 我参考xray的这个配置搭建了caddy,问题依旧存在 https://github.com/XTLS/Xray-examples/tree/main/VLESS-TLS-SplitHTTP-CaddyNginx |
我也碰到类似的问题。nginx1.27.1,xray24.9.30
但是我的客户端中会出现
以下是服务端配置:
|
完整性要求
描述
使用nginx代理的时候通过查看日志发现了存在两种情况的异常
1.同一个ID的数据先处理POST,后处理GET,处理GET时会出现超时,H2,H3都会出现
重现方式
持续运行xray,观看油管视频,大概五六分钟
客户端配置
服务端配置
nginx 配置 proxy_read_timeout 设置了30s,修改这个参数可以减少出现断流时的时间
xray服务器端配置
客户端日志
使用h3时会出现断流,h2未发现
服务端日志
服务器端没有异常日志
The text was updated successfully, but these errors were encountered: