-
Notifications
You must be signed in to change notification settings - Fork 470
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
netpoll should handle error with backoff #230
Comments
I think the true problem is that your dont have enough max_open_files. try to use |
ulimit is a way that system provided to prevent a process from using too many resources. accept syscall returns EMFILE or ENFILE when it reaches the limit. go net http server handled it. It won't cry for giving it larger fd limit. It just wait once per second for other connection closed. |
It's a interesting suggestion, will reconsider it. thanks! |
@ganlvtech #311 already find a way to fix it |
Describe the bug
netpoll should handle error with backoff
To Reproduce
Open another terminal and telnet several times.
Now there are tons of logs. It may be 10MB per second.
Expected behavior
Don't print so many logs.
Screenshots
netpoll server
go net http server
Server:
Additional context
netpoll server implement
netpoll/netpoll_server.go
Lines 96 to 103 in 6a5a4f7
go net http server implement
https://github.com/golang/go/blob/245e95dfabd77f337373bf2d6bb47cd353ad8d74/src/net/http/server.go#L3064-L3076
The text was updated successfully, but these errors were encountered: