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

Running on Android ARM64 fails #9

Open
cipriancraciun opened this issue Sep 2, 2022 · 0 comments
Open

Running on Android ARM64 fails #9

cipriancraciun opened this issue Sep 2, 2022 · 0 comments

Comments

@cipriancraciun
Copy link

cipriancraciun commented Sep 2, 2022

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.

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

No branches or pull requests

1 participant