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

fix(server): correct improper Close operation. #11

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

ghost
Copy link

@ghost ghost commented Aug 28, 2024

碰到连接错误给链路关了做甚,给Firefox都整不会了,只是探测一下支不支持Websockets Over HTTP/2,结果一下给整个TCP连接关了?

修复:
#10

We CANNOT close the stream immediately as we act as the data carrier in the middle. This fix ensures proper data flow through the relay.
@ghost
Copy link
Author

ghost commented Aug 28, 2024

实测Firefox全部使用Websockets的网站全部恢复正常,Chrome(感觉上)快了一点。

@ghost
Copy link
Author

ghost commented Aug 28, 2024

备注:Firefox版本129
测试网站:
https://websocketking.com/

@Itsusinn
Copy link
Owner

建议找一下具体的错误类型,添加一个match分支。严重的、不可恢复的错误还是要直接close的。

@Itsusinn
Copy link
Owner

建议找一下具体的错误类型,添加一个match分支。严重的、不可恢复的错误还是要直接close的。

这个我来做吧

@Itsusinn Itsusinn merged commit 4277eca into Itsusinn:dev Aug 29, 2024
17 checks passed
@ghost ghost mentioned this pull request Aug 29, 2024
Itsusinn added a commit that referenced this pull request Aug 29, 2024
@Itsusinn
Copy link
Owner

目前该pr的修改已被撤销,建议看发展再做定夺

@ghost
Copy link
Author

ghost commented Aug 30, 2024

好,这个问题确实应该是singbox的tuic实现出了问题

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.

1 participant