-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Avoid annoying log #4621
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
Comments
无效反馈 |
What do you need? I have sent the config and logs, you don't need my template either, you just need to check your xray client logs in debug |
因为这并不是未按预期行为工作的BUG,你的问题里只有一句连不上,然后就没了。这个协议还是有人用的,如果设计真的有问题早炸锅了,我本次测试也没看到问题。对于这种含糊不清的描述除非有更多报告不然没啥精力单独给你解决 |
Unfortunately, many users who are using it do not see this problem, apparently they have vision eye problems, apart from xhttp, this problem is also observed in websocket, what do you need now? Log? config ? |
ws也有问题纯粹是你们网络的问题了 与核心无关 |
My network has no problems. I checked 10 internet companies. |
|
websocket |
I tested much older versions, they also have disconnectivity problems. I tested up to 1.8.15, the problem is very serious, please follow up @RPRX |
Not Xray-core's bug |
I run the xray client on a Hetzner, Oracle, and Alibaba server. After a few kilobytes, I see a disconnect error. The errors point to this and say that the connection was closed and could not send the rest to the server. Then it requested TCP again to open it. its normal? |
如果是代码 bug 会有 大量报告,否则就只是你的配置或其它与 core 无关的 problem,而 issue 区只用来处理 bug |
这是一个非常简单的逻辑问题,WS 和 XHTTP 这两个协议有很多人用,他们都没问题,那么就不应当怀疑是 core 的 bug |
If you search the logs in the issue, you'll see that many people have had problems, |
Web socket and xhttp are two transmissions that I tested, maybe other transmissions have problems too. |
公网环境,连接意外断连然后在日志中有所体现很正常,非 bug,且你的问题是 影响到了正常使用,而不是日志出现什么 |
Monitor your connection logs for a few minutes and you will see that the logs are overflowing. I have tested with other people's configurations, different servers, and different people, and they all receive these logs. |
|
Why should I receive a definitive log on a personal server after using a few kilobytes of Telegram or opening a Google site? |
I know, dear R. Even though the disconnection log is coming up, I don't have any connection problems right now and I don't see any real disconnection, but I thought I'd let you know anyway. |
Xray-core 的日志这方面我还没整理,可能存在正常断连但日志报错的情况, 未影响到正常使用,可以先忽略 |
If you see these videos, I will delete them. |
Thank you for paying attention to everything. |
举个例子,ray 默认五分钟无活动超时,可能就是粗暴的 close,然后因为层层解耦,有些协议还以为是非预期断开,就报错了 但是这都五分钟无活动了,肯定没有影响到你的正常使用 |
所以就 I don't have any connection problems right now and I don't see any real disconnection |
而要正确传递“超时断开”这一信息的话,是一个相对复杂的系统性改造,但目前有时间的话我会写更重要的代码,所以暂时顾不上 |
What made me follow up was that Instagram, due to its low number of simultaneous connections, randomly experiences outages in the middle of videos between 30 min ~ 2 hours, and it takes about 30 to 40 seconds to resume playing the videos. After seeing the logs, I came to the conclusion that when these logs appear. By the way, I also have keep alive in all my configurations but not helped |
改了标题,作为提醒,reopen |
不过说实话挺复杂的,比如对端 Xray 也有超时机制,在本地看来就像是“意外断开”,或许无活跃三分钟以上的“意外断开”就不应报错 |
By removing unnecessary logs, we will have a better understanding of the outage. |
这与 annoying log 这一问题无关,极有可能是你的本地网络问题,运营商就是会掐断长连接,不然网络资源都被旧连接占满了 |
My connection is 5G, but I also saw this problem with videos getting stuck on Instagram as an xray client on a Hetzner Windows server. I don't think the Hetzner network would have any problems with such a powerful network with a 10~15 gigabit internet port that my server has. |
这都哪跟哪啊。。。。 |
What, when, where? |
Why should close pipe and udp/tcp close pipe errors be seen in the xray client and server in the hetzner datacenter? |
和这个是不是差不多? |
maybe |
我在使用时,没遇过这个错误。 |
stream error:stream id XXX 这个我本地还是偶尔会出来的 if goerrors.Is(err, io.EOF) || goerrors.Is(err, io.ErrClosedPipe) || goerrors.Is(err, context.Canceled) {
return nil
} else {
innerErr := goerrors.Unwrap(err)
if innerErr != nil {
if goerrors.Is(innerErr, windows.WSAECONNRESET) || goerrors.Is(innerErr, windows.WSAECONNABORTED) {
return nil
}
}
} |
@ddatsh 可以 PR 一下看看 |
Integrity requirements
Description
I have been seeing disconnect connection without any reason , I have tested 10 different internets. Please follow up and find out what the problem is.
Reproduction Method
ws , xhttp
Client config
Server config
Client log
Server log
The text was updated successfully, but these errors were encountered: