You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've thoroughly read the documentations on this issue but still have no clue.
I've searched the Github Issues but didn't find any duplicate issues that have been resolved.
I've searched the internet for this issue but didn't find anything helpful.
What happened?
When I tried to increase the number of clients connecting to the gnet server to 256, it didn't accept all the new connections and hang on accept system call, visit this for more details.
The root cause would be the TCP Accept Queue overflowing, and running sysctl kern.ipc.somaxconn=1000 (default is 128) will fix this issue, although this solution seems to be a palliative rather than a cure for this issue, it could be an OS issue because it only occurred on macOS and worked well on Linux, visit this for details.
Actions I've taken before I'm here
What happened?
When I tried to increase the number of clients connecting to the
gnet
server to 256, it didn't accept all the new connections and hang onaccept
system call, visit this for more details.The root cause would be the TCP Accept Queue overflowing, and running
sysctl kern.ipc.somaxconn=1000
(default is 128) will fix this issue, although this solution seems to be a palliative rather than a cure for this issue, it could be an OS issue because it only occurred on macOS and worked well on Linux, visit this for details.Major version of gnet
v2
Specific version of gnet
dev
Operating system
macOS
Relevant log output
Code snippets (optional)
No response
How to Reproduce
go test -v -race -run=TestShutdown$
Does this issue reproduce with the latest release?
It can reproduce with the latest release
The text was updated successfully, but these errors were encountered: