[ https://issues.apache.org/jira/browse/HTTPCORE-669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17911131#comment-17911131 ]
Shang Xiang commented on HTTPCORE-669: -------------------------------------- Hi [~olegk], yes I am able to get a working custom protocol negotiator with exactly your suggested changes. Reading from the session and checking the first bytes against the h2 prior knowledge preface, if they match, continue with the behavior from {{ServerH2PrefaceHandler}}; otherwise, call {{startProtocol}} with a new {{ServerHttp1IOEventHandler}}. > I found use H2C ,the capture packet doesn't contain Upgrade header > ------------------------------------------------------------------ > > Key: HTTPCORE-669 > URL: https://issues.apache.org/jira/browse/HTTPCORE-669 > Project: HttpComponents HttpCore > Issue Type: Wish > Components: HttpCore > Affects Versions: 5.0.3 > Reporter: zd > Priority: Minor > Fix For: Future > > Attachments: image-2021-02-25-14-25-40-888.png, > image-2021-02-25-14-27-06-073.png > > > My server is support H2C ,and I use JDK 11 httpclient ,this capture packet > is > !image-2021-02-25-14-25-40-888.png! > when I use HttpClient Core , the capture packet is > !image-2021-02-25-14-27-06-073.png! > it likes use H2C directly. > I found the RFC7540 says like JDK11 httpClient is correctly -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org