[3.3] Add connection preface process to TripleHttp2Protocol#15368
[3.3] Add connection preface process to TripleHttp2Protocol#15368zrlw merged 1 commit intoapache:3.3from
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.3 #15368 +/- ##
============================================
+ Coverage 60.74% 60.91% +0.17%
- Complexity 10913 11439 +526
============================================
Files 1886 1889 +3
Lines 86145 86310 +165
Branches 12906 12935 +29
============================================
+ Hits 52331 52580 +249
+ Misses 28359 28288 -71
+ Partials 5455 5442 -13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8fec5d3 to
0ce80d2
Compare
0ce80d2 to
25a8d11
Compare
25a8d11 to
8cde57a
Compare
90172cc to
e99518b
Compare
|
refer to okhttp: |
74e2ce0 to
05d2cd2
Compare
| throw remotingException; | ||
| } | ||
|
|
||
| if (connectionPrefaceReceivedPromise != null) { |
There was a problem hiding this comment.
Why not handle it in connect? I think it's not appropriate to do it in initBootstrap
|
Sorry for late, But I think it's better to merge the PR after the review. |
|
|
||
| public static final AttributeKey<AbstractConnectionClient> CONNECTION = AttributeKey.valueOf("connection"); | ||
|
|
||
| public AbstractNettyConnectionClient(URL url, ChannelHandler handler) throws RemotingException { |
There was a problem hiding this comment.
I think this logic should be added to org.apache.dubbo.remoting.transport.netty4.NettyConnectionClient, because HTTP/3 probably doesn't need it."
|
this pr was reverted because i found it has problems which should be fixed, and i want to find a more elegant way to do it. |
|
submit a new pr: #15436 |
What is the purpose of the change?
fixed #15233

No provider availableissue, the roots of the issue is client sent large headers frame before receiving server connection preface (http2 settings frame), which cause server sent back go away frame and the connection was disconnected by the server.see details at https://httpwg.org/specs/rfc7540.html#ConnectionHeader
https://quafoo.gitbooks.io/http2-rfc7540-zh-cn-en/content/chapter3/section3.5.html
Checklist