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

ERL-646: async_accept for gen_tcp and ssl #3637

Open
OTP-Maintainer opened this issue Jun 21, 2018 · 1 comment
Open

ERL-646: async_accept for gen_tcp and ssl #3637

OTP-Maintainer opened this issue Jun 21, 2018 · 1 comment
Assignees
Labels

Comments

@OTP-Maintainer
Copy link

Original reporter: juhlig
Affected version: Not Specified
Component: kernel
Migrated from: https://bugs.erlang.org/browse/ERL-646


Over the past years, I noticed a lot of applications implementing asynchronous accept routines for tcp and ssl sockets, by either using the internal (and therefore, subject to possible unannounced breaking changes) prim_inet:async_accept function, or by running the respective accepts in spawned processes, inventing the wheel over and over.

I therefore propose async_accept methods directly in the gen_tcp and ssl modules/applications, in order to have a standardized, safe way to achieve asynchronous accepts, making the potentially dangerous use of prim_inet:async_accept unnecessary, and reducing boilerplate code.
@OTP-Maintainer
Copy link
Author

vans163 said:

Along with this I want to propose to add multiple process recv for gen_udp from the same binded socket.

Currently UDP applications have no way in hell of scaling and WebRTC is everywhere these days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants