H2Connection initial settings should be customizable
See original GitHub issueFor 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:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 theH2Connection.local_settings
member with a newSettings
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. 😄
👍 Thanks for your input!