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.

H2Connection initial settings should be customizable

See original GitHub issue

For simple use cases where the user calls H2Connection.initiate_connection() and then H2Connection.update_settings(), it can be noticed that 2 settings frames will be sent.

The first one contains the defaults, generated in the initiate_connection() call. The second frame contains any user updated settings.

While this behaviour does not violate the HTTP/2 specifications, I think we can accept some settings in the H2Connection __init__ method to allow users to control the initial settings. If the required settings are not provided, H2Connection can use the defaults.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Lukasacommented, Oct 24, 2017

So while we certainly could accept settings in the __init__, it’s not really entirely necessary. For the general situation it’s unlikely to matter, and for those that need it they can simply patch the H2Connection.local_settings member with a new Settings object.

That said, I think I’d probably be willing to accept a tested patch that enables this: I just don’t think it’s particularly high priority. 😄

0reactions
Lukasacommented, Oct 29, 2017

👍 Thanks for your input!

Read more comments on GitHub >

github_iconTop Results From Across the Web

H2Connection initial settings should be customizable · Issue #1042 ...
For simple use cases where the user calls H2Connection.initiate_connection() and then H2Connection.update_settings(), it can be noticed that 2 settings ...
Read more >
h2 API — hyper-h2 4.1.0 documentation
Inform the H2Connection that a certain number of flow-controlled bytes have been ... can put in the HTTP2-Settings field they send on their...
Read more >
Spring Boot default H2 jdbc connection (and H2 console)
1. dumb question but this seems to be the default JDBC URL because the setting spring.datasource.name defaults to testdb. · 2. This jdbc...
Read more >
h2 3.2.0 - PyPI
If you defined a custom logger object, you need to handle these new function calls. ... This is a safe defensive initial value...
Read more >
H2 Settings - Cloudera Documentation
This property specifies additional arguments to add to the connection string for the H2 database. The default value should be used and should...
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