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 — Auto-port 4.1: Use LocalIoHandler instead of DefaultEventLoop for LocalChannel tests in codec-http2 by netty-project-bot · Pull Request #17708 · netty/netty Auto-port 4.1: Use LocalIoHandler instead of DefaultEventLoop for LocalChannel tests in codec-http2 #17708New issueHave 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
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Auto-port 4.1: Use LocalIoHandler instead of DefaultEventLoop for LocalChannel tests in codec-http2 #17708Changes from all commits
Commits
File filterConversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page. Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page. Diff viewDiff view
Use LocalIoHandler instead of DefaultEventLoop for LocalChannel tests…
… in codec-http2 (#17697) Motivation: Http2MultiplexTransportTest failed on CI in the LeakPresenceExtension afterAll check ("Possible memory leak detected for resource scope") although every test in the class passed. The check waits up to 5 seconds for resources to be released, so something stayed open for good rather than just shutting down slowly. Several tests run LocalChannel / LocalServerChannel on a DefaultEventLoop and then call shutdownGracefully() without waiting. Unlike LocalIoHandler (and NioIoHandler for the other tests in the class), DefaultEventLoop does not close the channels registered with it when it shuts down. A server-side child channel is therefore only closed if the peer-close task still runs before the loop terminates. If it does not, the channel and whatever it still holds (for example the large wrapped payloads written by the auto-read tests added in #17617) is never released, which the leak presence detector reports. Modification: - Use `new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory())` instead of `new DefaultEventLoop()` in the LocalChannel based tests of Http2MultiplexTransportTest, Http2MultiplexCodecBuilderTest and Http2StreamChannelBootstrapTest. LocalIoHandler closes all registered channels when the group shuts down. A single thread is kept so server and client still share one event loop as before. Result: Channels of the LocalChannel tests are always closed when their event loop group shuts down, which removes one possible source of the flaky leak report. (cherry picked from commit d3817ad)
Uh oh!
There was an error while loading. Please reload this page.
commit 7a2ecb5abb80b57743dffb678150825e58bc00fd
There are no files selected for viewing
Oops, something went wrong.
Uh 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. |