-
Notifications
You must be signed in to change notification settings - Fork 4.6k
XHTTP client: Fix edge-case issue for packet-up
mode
#5020
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
Conversation
68c7c08
to
5129c1e
Compare
This comment was marked as outdated.
This comment was marked as outdated.
I fix that. |
580b708
to
8b042a1
Compare
8b042a1
to
5129c1e
Compare
能不能别乱动 这样不行 会出问题的 |
although it has no practical effect, |
首先这不是我写的 第一个buffer.Write 那是写buffer 预处理 并没有东西写入底层连接 |
i talk about suppose after and in so we should return |
From annoying request
thx. |
0a063b5
to
b5e3b5b
Compare
我看改后似乎没啥问题,可以合了吗 |
没啥问题 第一个commit就是好的 后面都无关紧要 |
instead of number of bytes-sent, it always return this PR, and #5006 fixes important issues and should be merged for next version. then I release serverless-for-iran-anti-sanction. I hope I don't find any new bugs while testing this time, It was really strange, as if someone had intentionally put some hidden bugs in Xray-core. |
|
I worked hard for it, I hope it will be well received this time. At least it caused many bugs to be fixed in Xray-core :) |
没看出来 fix 了个啥important 绑在你那个pr催合并吗 还跑到这底下提一嘴你的玩意 喊得到大声。。 |
怕非中文母语者不懂:玩梗,无恶意 |
|
I have fulfilled all your requests without any expectations until now. I have a goal and I fight for it. No harash word can upset me. at least I think @RPRX appreciated my efforts like a father, thank you very much again. |
|
i hope before release next-version. |
packet-up
mode
不过谈到 Write() 的 err,在 TCP 上返回 n 没有意义,因为都 err 了你也不能确定对端收了多少,也不敢重新 Write(),而是会放弃整条连接,所以其实返回 0 就够了(除非像 buffer 这些内部函数),我写的 encryption 就全返回 0,Read() 的 err 的话 n 还有点意义 |
I also said it has no practical effect, I was just saying it in terms of programming logic: #5020 (comment) Also, the main problem was something else, and this was just a side issue. |
|
But for debugging and correct-calculation-of-traffic-statistics we must return exact value. |
XTLS#4952 (comment) (cherry picked from commit 6fc0a40)
今天刚好聊到了(