ranch icon indicating copy to clipboard operation
ranch copied to clipboard

Questions about "gen_tcp:accept/2" and "num_acceptors"

Open zhu121 opened this issue 4 years ago • 2 comments

Version: 2.1.0 The issue is: How to determine the value of "num_acceptors" in the scenario of handling large concurrent connection requests, and whether "gen_tcp:accept/2" is replaced by "prim_inet:async_accept()" would be more appropriate

zhu121 avatar Mar 28 '22 08:03 zhu121

Benchmark!

Using an undocumented function that will almost certainly be removed once socket becomes prevalent is not appropriate.

essen avatar Mar 28 '22 09:03 essen

Benchmark!

Using an undocumented function that will almost certainly be removed once socket becomes prevalent is not appropriate.

Excuse me. Multiple gen_server processes are monitoring accept, whether to consider the shocking group problem, I can't find relevant information.

zhu121 avatar Mar 28 '22 09:03 zhu121