Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hpack - disable dynamic table #271

Closed
lemur117 opened this issue Jul 20, 2021 · 3 comments
Closed

hpack - disable dynamic table #271

lemur117 opened this issue Jul 20, 2021 · 3 comments

Comments

@lemur117
Copy link

How can I disable the HTTP/2 dynamic table? I would like to prevent to caching of headers so that the full header content has to be sent on the wire each time, not just the index to the dynamic table. I've tried playing with the "self.max_allowed_table_size" value, but I haven't gotten it to work.

@Kriechi
Copy link
Member

Kriechi commented Jul 20, 2021

You probably have to communicate that with the actual protocol HTTP/2 outside of hpack - see https://datatracker.ietf.org/doc/html/rfc7541#section-4.2 with a section at the end on how to "clear" the dynamic table.

@lemur117
Copy link
Author

Thanks for the pointer. Do you know where I should look to communicate with the HTTP/2 protocol? And how that could be exposed when I'm creating an HTTP20Connection object?

E.g., what I'm trying to do is:

from hyper import HTTP20Connection
connection = HTTP20Connection(f'{ip_port}')

Then I want to either disable the dynamic table completely or be able clear it on demand. I was hoping hpack was the right place to look, but if not, would it still be within the hyper collection?

@Kriechi
Copy link
Member

Kriechi commented Jul 24, 2021

Sorry, the hyper library has been unsupported for years.

The h2 library is using hpack - but you would need to update/upgrade to h2.

Or are you using any other connection library or wrapper?

@Kriechi Kriechi closed this as completed Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants