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 — Make half-closure a core-concept of Channel by normanmaurer · Pull Request #15987 · netty/netty Conversation
Member
Motivation: At the moment our half-closure support is kind of weak and hacky. We use various DuplexChannel specific methods which will not traverse the pipeline at all and also use user events. This should be changed to be a "core concept" and so have dedicated methods that can be used and also traverse the pipeline. What shutdown(...) actually means is a bit transport specific but in general once someone shutdown the output it should not be possible to write anymore. Also when the inbound is shutdown we should not propagate inbound messages anymore. If the shutdown calls are propagated through the network somehow is specific to the protocol itself and so might differ. Modifications:
Result: Half-closure is now a core-concept of netty.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
force-pushed
the
shutdown_core
branch
from
f1fb30b to
1a37114
Compare
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
chrisvest
reviewed
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. Had some comments
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
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. Should we skip this and fail early if
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
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. we could ... I just ported the old code.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
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. I think we should not fail but just succeed them early. As even on a idk SocketChannel it will not throw in this case. ... done
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh 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. Uh oh!
There was an error while loading. Please reload this page.
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. We also do this in
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
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. yes in both places imho... But I would keep the code separate
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
force-pushed
the
shutdown_core
branch
from
c687a6c to
e162f49
Compare
normanmaurer
force-pushed
the
shutdown_core
branch
from
e162f49 to
341d4e7
Compare
chrisvest
approved these changes
Motivation: At the moment our half-closure support is kind of weak and hacky. We use various DuplexChannel specific methods which will not traverse the pipeline at all and also use user events. This should be changed to be a "core concept" and so have dedicated methods that can be used and also traverse the pipeline. What shutdown(...) actually means is a bit transport specific but in general once someone shutdown the output it should not be possible to write anymore. Also when the inbound is shutdown we should not propagate inbound messages anymore. If the shutdown calls are propagated through the network somehow is specific to the protocol itself and so might differ. Modifications: - Add ChannelShutdownType and ChannelShutdownDirection - Add ChannelOutboundInvoker.shutdown(ChannelShutdownType, ChannelPromise) method - Add ChannelInboundInvoker.fireChannelShutdown(ChannelShutdownType) methods - Add Channel.isShutdown(ChannelShutdownType) method - Add ChannelHandler.shutdown(ChannelHandlerContext, ChannelShutdownType) and ChannelHandler.channelShutdown(ChannelHandlerContext, ChannelShutdownType) methods - Refactor code to use the new methods and also add implementations for the different transports Result: Half-closure is now a core-concept of netty.
normanmaurer
force-pushed
the
shutdown_core
branch
from
f5daeb5 to
7444c49
Compare
Contributor
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. I looked at the interface changes and also think this makes a lot of sense.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh 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. 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. |