GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — Prevent ManualEventLoop to block on a racy task submission by franz1981 · Pull Request #15937 · netty/netty Conversation
Contributor
Motivation: ManualEventLoop can be blocked forever if not aware of task submissions before getting asleep Modification: Expands the ManualIoEventLoop API to make it aware of additional non-blocking conditions and correctly enqueue an empty task while shutting down to prevent a racy sleep to happen. Additionally, fix the blocking deadline math computation taking in account negativeness and whilst no deadline is set: for the latter, change the default previous deadline value of EpollIoHandler into NONE, to save performing timed wait, if no deadline is specified Result: ManualIoEventLoop correctly make progress if there's work to perform and terminate, while shutdown Fixes #15922
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
franz1981
commented
Uh oh!
There was an error while loading. Please reload this page.
franz1981
commented
Uh oh!
There was an error while loading. Please reload this page.
franz1981
commented
Uh oh!
There was an error while loading. Please reload this page.
franz1981
commented
Uh oh!
There was an error while loading. Please reload this page.
franz1981
commented
Uh oh!
There was an error while loading. Please reload this page.
franz1981
force-pushed
the
4.2_epoll_manual
branch
from
e112199 to
8901b4f
Compare
franz1981
commented
Uh oh!
There was an error while loading. Please reload this page.
franz1981
force-pushed
the
4.2_epoll_manual
branch
2 times, most recently
from
ef9e228 to
c96a86c
Compare
He-Pin
reviewed
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Motivation: ManualEventLoop can be blocked forever if not aware of task submissions before getting asleep Modification: Expands the ManualIoEventLoop API to make it aware of additional non-blocking conditions and correctly enqueue an empty task while shutting down to prevent a racy sleep to happen. Additionally, fix the blocking deadline math computation taking in account negativeness and whilst no deadline is set: for the latter, change the default previous deadline value of EpollIoHandler into NONE, to save performing timed wait, if no deadline is specified Result: ManualIoEventLoop correctly make progress if there's work to perform and terminate, while shutdown
franz1981
force-pushed
the
4.2_epoll_manual
branch
from
c96a86c to
dcab167
Compare
normanmaurer
requested changes
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
franz1981
commented
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @normanmaurer this is the actual fix: i was observing a select without any timeout to still call selectNow instead - which is not right
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
requested review from
He-Pin and
chrisvest
and removed request for
He-Pin
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
chrisvest
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was challenging to review, but it looks good.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
approved these changes
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
pushed a commit
that referenced
this pull request
Motivation: ManualEventLoop can be blocked forever if not aware of task submissions before getting asleep Modification: Expands the ManualIoEventLoop API to make it aware of additional non-blocking conditions and correctly enqueue an empty task while shutting down to prevent a racy sleep to happen. Additionally, fix the blocking deadline math computation taking in account negativeness and whilst no deadline is set: for the latter, change the default previous deadline value of EpollIoHandler into NONE, to save performing timed wait, if no deadline is specified Result: ManualIoEventLoop correctly make progress if there's work to perform and terminate, while shutdown Fixes #15922
normanmaurer
added a commit
that referenced
this pull request
…16001) Motivation: ManualEventLoop can be blocked forever if not aware of task submissions before getting asleep Modification: Expands the ManualIoEventLoop API to make it aware of additional non-blocking conditions and correctly enqueue an empty task while shutting down to prevent a racy sleep to happen. Additionally, fix the blocking deadline math computation taking in account negativeness and whilst no deadline is set: for the latter, change the default previous deadline value of EpollIoHandler into NONE, to save performing timed wait, if no deadline is specified Result: ManualIoEventLoop correctly make progress if there's work to perform and terminate, while shutdown Fixes #15922 Co-authored-by: Francesco Nigro <[email protected]>
Closed
Closed
This was referenced
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers+1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Racy wakeup attempts prevent manual io event loop to shutdown with EPOLLUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |