Skip to content
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

Supports customized tcp listener #1474

Closed
wants to merge 1 commit into from

Conversation

serverglen
Copy link
Contributor

Related issue: #918

@serverglen
Copy link
Contributor Author

@zyearn @lorinlee @cdjingit @TousakaRin 辛苦抽时间review下呗,thanks.

@cdjingit
Copy link
Contributor

cdjingit commented Sep 1, 2021

这个需要哪些定制需求呢?可以列一些场景吗?默认的tcp_listen()本身涉及一些校验逻辑和gflag,替换的话需要和tcp_listen()兼容

@wwbmmm
Copy link
Contributor

wwbmmm commented Mar 28, 2022

默认的tcp_listen函数实现目前变得更复杂了,尤其在合入了ipv6和uds功能之后。用户自定义listen函数想要正确地处理各种情况并不容易,也不推荐。
建议如果有更明确的需求,可以通过修改tcp_listen,添加一些gflag或者参数来实现。

@wwbmmm wwbmmm closed this Mar 28, 2022
@serverglen serverglen deleted the custom_tcp_listener branch August 16, 2022 04:02
@serverglen serverglen restored the custom_tcp_listener branch August 16, 2022 04:02
@serverglen serverglen deleted the custom_tcp_listener branch January 16, 2023 11:58
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.

None yet

3 participants