-
Notifications
You must be signed in to change notification settings - Fork 38
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
remove websocket from fd_set when we know changes are pending #211
Comments
I guess you mean procedure Give_Back in package AWS.Net.Acceptors, right ? |
Maybe I understand wrong you question. We are removing socket from set when reading and writing it. |
I was thinking of In my own server, I wasn't recreating the set all the time, it was just modified when new sockets were added or others remove. To mark a socket as irrelevant for a call to |
I'l let @TurboGit answer this question, I do not know good enough the AWS websockets part. |
When I wrote a server (not based on AWS), I was also ensuring that sockets for which we got a notification in
epoll()
were removed from theFD_Set
until we had actually read or written everything to/from it. Otherwise, that socket keeps popping up inepoll
which is inefficient. Is something like this necessary here (perhaps a new Issue, though)Originally posted by @briot in #209 (comment)
The text was updated successfully, but these errors were encountered: