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

too many open streams #13

Closed
wants to merge 1 commit into from
Closed

too many open streams #13

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Aug 29, 2024

把服务端流的数量调大一点,不然用户一多就出现 too many open streams 然后断线,需要重连才行
其他没什么问题

保守设置成 64
一步到位,改成512了

@Itsusinn
Copy link
Owner

Itsusinn commented Aug 29, 2024

是我记错了吗,我记得有啥地方可以改一个叫 max concurrent stream,我现在倒是找不到了 原来是clash-rs里的。

这个max concurrent stream好像达到default concurrent stream时会变大,可能是记错了

@ghost
Copy link
Author

ghost commented Aug 29, 2024

是我记错了吗,我记得有啥地方可以改一个叫 max concurrent stream,我现在倒是找不到

没找到

@ghost
Copy link
Author

ghost commented Aug 29, 2024

https://github.com/Itsusinn/tuic/blob/dev/tuic-client%2Fsrc%2Fconnection%2Fhandle_stream.rs#L15-L21

这不是客户端的吗,而且服务端的配置(文件)里面没有这个

@Itsusinn
Copy link
Owner

Itsusinn commented Aug 29, 2024

这不是客户端的吗

https://github.com/Itsusinn/tuic/blob/dev/tuic-server%2Fsrc%2Fconnection%2Fhandle_stream.rs#L23-L29

服务端也有,可能这个配置不太重要

@Fhokud
Copy link

Fhokud commented Aug 29, 2024

IMG_20240829_223424.jpg

跑测速时上传会报too many open streams()

@Itsusinn
Copy link
Owner

Itsusinn commented Aug 29, 2024

IMG_20240829_223424.jpg

跑测速时上传会报too many open streams()

这个是客户端的问题,客户端和服务器的最大并发数是独立的

这是什么软件?

@Fhokud
Copy link

Fhokud commented Aug 29, 2024

这是什么软件?

NekoBox

@ghost
Copy link
Author

ghost commented Aug 29, 2024

调查了一下,估计和#11 有关,有些连接需要关闭才行

@ghost
Copy link
Author

ghost commented Aug 29, 2024

这个 PR 先Close了,和这个参数无关(还有点关系)

@ghost ghost closed this Aug 29, 2024
@ghost
Copy link
Author

ghost commented Aug 29, 2024

@Itsusinn 你看一下吧,现在这个提升输入流数量也是可以解决,看一下hy2的这个( apernet/hysteria#1073 ),我已经麻了

@ghost ghost changed the title increase DEFAULT_CONCURRENT_STREAMS value. too many open streams Aug 29, 2024
@ghost ghost reopened this Aug 29, 2024
@ghost
Copy link
Author

ghost commented Aug 29, 2024

@ghost
Copy link
Author

ghost commented Aug 29, 2024

1
实测不行,一跑测速就缩缸,要登上几秒才能恢复

@Itsusinn
Copy link
Owner

我感觉这个是要改nekobox

@ghost
Copy link
Author

ghost commented Aug 29, 2024

我感觉这个是要改nekobox

nekobox我用hy2跑测速不会缩缸,看起来是quinn的问题,不像是没有close()的问题,因为等几秒没有发生重连就恢复了

@Itsusinn
Copy link
Owner

Itsusinn commented Aug 29, 2024

虽然我没用过nekobox,但它的tuic实现应该与clash meta的一样(不一样),有个叫max-open-streams的配置
https://wiki.metacubex.one/config/proxies/tuic/

@ghost
Copy link
Author

ghost commented Aug 29, 2024

虽然我没用过nekobox,但它的tuic实现应该与clash meta的一样,有个叫max-open-streams的配置 https://wiki.metacubex.one/config/proxies/tuic/

现在的HEAD用你的客户端跑 https://www.speedtest.net 会不会报问题

@ghost
Copy link
Author

ghost commented Aug 29, 2024

我下个client跑一下

@ghost
Copy link
Author

ghost commented Aug 29, 2024

@Itsusinn 确实是 nekobox/nekoray 的问题,我用的https://github.com/Itsusinn/tuic/actions/runs/10618920948/job/29435300425?pr=13
这个actions里面跑出来的服务端和客户端,没有问题,不报错

@ghost
Copy link
Author

ghost commented Aug 29, 2024

32个流我觉得确实有点少了,你看下这个应该怎么处理,有其他办法的话我先Close了 (另外这个actions出来的windows好像不报毒了)

@Itsusinn
Copy link
Owner

nekobox我用hy2跑测速不会缩缸,看起来是quinn的问题,不像是没有close()的问题,因为等几秒没有发生重连就恢复了

Hysteria使用的流控和tuic不一样,hy的带宽更大些是预料中的

@ghost
Copy link
Author

ghost commented Aug 29, 2024

nekobox我用hy2跑测速不会缩缸,看起来是quinn的问题,不像是没有close()的问题,因为等几秒没有发生重连就恢复了

Hysteria使用的流控和tuic不一样,hy的带宽更大些是预料中的

目前看来第三方内核的实现给的很保守,这个问题就大了
Sing-box:
https://sing-box.sagernet.org/configuration/outbound/tuic/
没看到Stream相关配置

@ghost
Copy link
Author

ghost commented Aug 29, 2024

nekobox我用hy2跑测速不会缩缸,看起来是quinn的问题,不像是没有close()的问题,因为等几秒没有发生重连就恢复了

Hysteria使用的流控和tuic不一样,hy的带宽更大些是预料中的

另外这个缩缸不是指服务降级,而是一段时间内所有网页无法打开

@ghost
Copy link
Author

ghost commented Aug 30, 2024

@ghost
Copy link
Author

ghost commented Aug 30, 2024

我去编译一个改版的singbox,测试一下

@ghost ghost marked this pull request as draft August 30, 2024 03:24
@Itsusinn
Copy link
Owner

这可不好改啊

@ghost
Copy link
Author

ghost commented Aug 30, 2024

这可不好改啊

1
确实

@ghost
Copy link
Author

ghost commented Aug 30, 2024

另外这个sing-quic只在nekocore里面找到,singbox本体没找到

@Itsusinn
Copy link
Owner

@ghost
Copy link
Author

ghost commented Aug 30, 2024

试了没用,我用了6cad66e revert后的服务端,too many open streams 的错误没有了,但是我这ff的ws用nekobox又连不上了

@ghost
Copy link
Author

ghost commented Aug 30, 2024

我研究一下

@ghost
Copy link
Author

ghost commented Aug 30, 2024

试了没用,我用了6cad66e revert后的服务端,too many open streams 的错误没有了,但是我这ff的ws用nekobox又连不上了

第二次测速又开始too many open streams,原版client反而不会报这个,累了,不整了

@ghost ghost closed this Aug 30, 2024
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants