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
Trying to run a server that uses tcplisten (via fasthttp/reuseport) on Android ARM64 (non jailbroken, Samsung official Android 12) results in the following error:
cannot determine backlog to pass to listen(2): open /proc/sys/net/core/somaxconn: permission denied
I think the issue is that for some reason the Go compiler believes that GOOS=android is a superset of GOOS=linux (when it comes to conditional builds), thus soMaxConn tries to do the auto-detection based on /proc/....
Perhaps a simple change in soMaxConn that checks if it's not actually running on Linux (looking at runtime.GOOS == "linux") would suffice.
The text was updated successfully, but these errors were encountered:
Trying to run a server that uses
tcplisten
(viafasthttp/reuseport
) on Android ARM64 (non jailbroken, Samsung official Android 12) results in the following error:I think the issue is that for some reason the Go compiler believes that
GOOS=android
is a superset ofGOOS=linux
(when it comes to conditional builds), thussoMaxConn
tries to do the auto-detection based on/proc/...
.Perhaps a simple change in
soMaxConn
that checks if it's not actually running on Linux (looking atruntime.GOOS == "linux"
) would suffice.The text was updated successfully, but these errors were encountered: