Repository navigation
Conversation
…rent writes to the underlayer" This reverts commit 5745dea.
|
不过 pipe 的 Interrupt 和 Close 似乎有区别,后者不会把内存放回 pool 中?还是说会被 GC? |
|
With |
|
|
这个writer在core里其他地方用了几年了从未见到此类问题 它有问题核心其他地方都会有问题 要当个事办那这也是个得修的BUG 顶多给它实现一个interrupt接口 |
只能说 @Medium1992 提了个好问题,core 里实现了 buf.Writer/Reader 的几乎都没往内层传 Interrupt(),pipe 就可能漏内存
|
|
pipe无关 这个writer如果真的发生block on write的情况的时候close就是会死锁 |
|
突然想到 #5143 (comment) |
严重漏内存的话也就只能是 pipe 了吧,因为 pipe 里面可以设置大缓存,缓存满了卡住 write 且没人管 read 的话就凉了 |
|
漏多少没关系 只要会漏就会越堆越高然后炸缸 早晚的 |
|
采用这个 PR 吧 想了一下 pipe 的设计逻辑应该是 Close 的话仍能把里面缓存的数据取出来,Interrupt 的话就是直接清空缓存 所以 #7355 (comment) 应该还有一种情况是,write to pipe 没卡住但从应用程序 read 不出来了所以不继续 copy 而是返回了,就没人管 write to pipe 这侧了,此时再叠上 read from pipe 这侧早没了,如果 pipe 里有一些 buf,就没人把内存放回 pool 了
|
Upstream c43ee98e (XTLS/Xray-core#7359) replaces MutexWriter with an unbuffered buf.BufferedWriter whose Interrupt reaches the pipe, so 0002 no longer applies and the alpha build failed on it. The client-drop and KeepAlive tests pass on upstream main with the remaining patches. The published v26.11.9 image keeps 0002; the next stable tag carries the upstream fix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in XTLS/Xray-core up to c456141 (still v26.11.9): - Build: build list optimization and build-tag clean-up (XTLS#5824) - Hysteria transport: proper Brutal behavior; bump quic-go to v0.63.1-...a10df75c (XTLS#7356) - Metrics: close HTTP connections when stopping the Instance (XTLS#7361) - XDNS finalmask: TCP resolver worker (XTLS#7354) - VLESS mux.cool: maxConcurrency 128 only for XDRIVE (XTLS#7375); replace MutexWriter with buf.BufferedWriter (XTLS#7359) No conflicts: upstream and the fork changed disjoint files; go.mod/go.sum are taken from upstream unchanged. The fork's core/core.go version (26.11.12) is kept.
…iplex` in VLESS/VMess outbound (#7364) #6748 (comment) #7240 (comment) #4231 (comment) #7355 (comment) #7359 (comment) #7364 (comment) #7364 (comment) #7364 (comment) #4231 (comment) #7364 (comment) #7364 (comment) #7364 (comment) --------- Co-authored-by: Codex <[email protected]> Co-authored-by: RPRX <[email protected]>
… `settings.multiplex` in VLESS/VMess outbound (#7364) #6748 (comment) #7240 (comment) #4231 (comment) #7355 (comment) #7359 (comment) #7364 (comment) #7364 (comment) #7364 (comment) #4231 (comment) #7364 (comment) #7364 (comment) #7364 (comment) --------- Co-authored-by: Codex <[email protected]> Co-authored-by: RPRX <[email protected]>
… only uses `settings.multiplex` in VLESS/VMess outbound (#7364) #6748 (comment) #7240 (comment) #4231 (comment) #7355 (comment) #7359 (comment) #7364 (comment) #7364 (comment) #7364 (comment) #4231 (comment) #7364 (comment) #7364 (comment) #7364 (comment) --------- Co-authored-by: Codex <[email protected]> Co-authored-by: RPRX <[email protected]>
两行完工的东西何苦呢(