Skip to content
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

Upgrade to Netty 4.1.0.CR1 #102

Merged
merged 1 commit into from
Feb 3, 2016
Merged

Upgrade to Netty 4.1.0.CR1 #102

merged 1 commit into from
Feb 3, 2016

Conversation

trustin
Copy link
Member

@trustin trustin commented Jan 29, 2016

@trustin trustin added this to the 0.9.0.Final milestone Jan 29, 2016

private final SourceCodec sourceCodec;
private final UpgradeCodec upgradeCodec;
private boolean upgradeRequested;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it fine for this flag not to be volatile ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Netty handler methods are invoked from the same thread.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
On Feb 2, 2016 7:54 PM, "Trustin Lee" notifications@github.com wrote:

In
src/main/java/com/linecorp/armeria/common/http/Http1ClientUpgradeHandler.java
#102 (comment):

  •    /**
    
  •     \* Removes or disables the encoder of this codec so that the {@link UpgradeCodec} can send an initial greeting
    
  •     \* (if any).
    
  •     */
    
  •    void prepareUpgradeFrom(ChannelHandlerContext ctx);
    
  •    /**
    
  •     \* Removes this codec (i.e. all associated handlers) from the pipeline.
    
  •     */
    
  •    void upgradeFrom(ChannelHandlerContext ctx);
    
  • }
  • private final SourceCodec sourceCodec;
  • private final UpgradeCodec upgradeCodec;
  • private boolean upgradeRequested;

Yes. Netty handler methods are invoked from the same thread.


Reply to this email directly or view it on GitHub
https://github.com/line/armeria/pull/102/files#r51552856.

- Remove the DnsNameResolverGroup workaround
- Fix the H1C-to-H2C upgrade regression by using the fix at:
  - netty/netty#4785
  - Update Http1ClientCodec forked from upstream
  - Add Http1ClientUpgradeHandler forked from upstream
@trustin trustin self-assigned this Feb 3, 2016
trustin added a commit that referenced this pull request Feb 3, 2016
@trustin trustin merged commit 23b81e8 into line:master Feb 3, 2016
@trustin trustin deleted the netty_4.1.0.CR1 branch February 3, 2016 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants