Skip to content

fix: set socket buffer options before connect#3368

Open
howzi wants to merge 1 commit into
apache:masterfrom
howzi:fix/socket-buffer-options-before-connect
Open

fix: set socket buffer options before connect#3368
howzi wants to merge 1 commit into
apache:masterfrom
howzi:fix/socket-buffer-options-before-connect

Conversation

@howzi

@howzi howzi commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

现有的tcp SNDBUF和RCVBUF设置时机有问题,不仅会导致设置失败,测试中发现还会导致buf固定位非预期的值。

参考:
https://man7.org/linux/man-pages/man7/tcp.7.html
image

@howzi howzi force-pushed the fix/socket-buffer-options-before-connect branch from 51bfd0e to 308fadf Compare July 3, 2026 09:56
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