question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confirm default of enabling http2 preface on client

See original GitHub issue

Just wanted to confirm using the http2 preface is a good default for an armeria client. I ran into not being able to connect to Elasticsearch V7 when this is enabled with

com.linecorp.armeria.client.SessionProtocolNegotiationException: expected: http, reason: connection established, but session creation timed out:

The error message doesn’t really help debug and after being stuck for a while, I had the random idea of disabling the preface, which I think most users wouldn’t ever find.

If there are servers where the preface doesn’t work, is it actually a good idea to default to enabling it?

For reference, had failures in this build https://travis-ci.org/openzipkin/zipkin/builds/556693286?utm_source=github_status&utm_medium=notification

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
minwooxcommented, Jun 29, 2020

Oops~ 😅

0reactions
ikhooncommented, Jun 29, 2020

… I’d like to keep the current behavior as it is, i.e. useHttp2Preface = true by default, unless there’s strong objection.

+1 Even though the spec recommends to use HTTP/2 upgrade requests for cleartext, I think it is more important to work well with Armeria echo system using our default configuration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to HTTP/2 - web.dev
HTTP/2 (or h2) is a binary protocol that brings push, multiplexing streams and frame control to the web.
Read more >
RFC 7540 - Hypertext Transfer Protocol Version 2 (HTTP/2)
In HTTP/2, each endpoint is required to send a connection preface as a final confirmation of the protocol in use and to establish...
Read more >
HTTP/2 Frequently Asked Questions
Why is HTTP/2 binary? Why is HTTP/2 multiplexed? Why just one TCP connection? What's the benefit of Server Push? Why do we need...
Read more >
Create a custom HTTP/2 profile - AskF5
On the Main tab, click. Local Traffic. Profiles · Click. Create . · Type a. Name. for the profile, such as · For...
Read more >
Tools for debugging, testing and using HTTP/2
Once installed you can check the HTTP/2 status of a web on the command-line: ... One of those is a command-line client called...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found