Skip to content

common/buf/writer.go: Fix buffered writes failing when payload exceeds remaining capacity - #6723

Merged
RPRX merged 1 commit into
XTLS:mainfrom
hossinasaadi:patch/buffer-full
Sep 7, 2026
Merged

common/buf/writer.go: Fix buffered writes failing when payload exceeds remaining capacity#6723
RPRX merged 1 commit into
XTLS:mainfrom
hossinasaadi:patch/buffer-full

Conversation

@hossinasaadi

Copy link
Copy Markdown
Contributor

No description provided.

@Fangliding

Copy link
Copy Markdown
Member

之前竟然没遇到问题 大概是没有协议握手包超过8192吧。。

@hossinasaadi

Copy link
Copy Markdown
Contributor Author

之前竟然没遇到问题 大概是没有协议握手包超过8192吧。。

This seems to come from #5020, which changed Buffer.Write to return ErrBufferFull on partial writes.

@Fangliding

Copy link
Copy Markdown
Member

是的 我的意思是从那个PR迄今为止好像没遇到过有关报告

@hossinasaadi

Copy link
Copy Markdown
Contributor Author

是的 我的意思是从那个PR迄今为止好像没遇到过有关报告

Yes, some of my users have reported this too. I also came across #5287 (comment)

@RPRX RPRX changed the title Fix buffered writes failing when payload exceeds remaining capacity common/buf/writer.go: Fix buffered writes failing when payload exceeds remaining capacity Sep 7, 2026
@RPRX
RPRX merged commit 6ce8dc5 into XTLS:main Sep 7, 2026
40 checks passed
@hossinasaadi
hossinasaadi deleted the patch/buffer-full branch September 8, 2026 07:12
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.

3 participants