Skip to content

Add a setter for header_table_size#638

Merged
seanmonstar merged 2 commits into
hyperium:masterfrom
4JX:test
Oct 30, 2023
Merged

Add a setter for header_table_size#638
seanmonstar merged 2 commits into
hyperium:masterfrom
4JX:test

Conversation

@4JX

@4JX 4JX commented Aug 23, 2022

Copy link
Copy Markdown
Contributor

The function's description may need some refinement

Closes #637

@seanmonstar seanmonstar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! What do you think of adding a test to tests/h2-tests/src/client.rs?

@4JX

4JX commented Aug 24, 2022

Copy link
Copy Markdown
Contributor Author

Nice work! What do you think of adding a test to tests/h2-tests/src/client.rs?

Used the file that most closely matched what you said. Basically a carbon copy of client_builder_max_concurrent_streams.

@seanmonstar

Copy link
Copy Markdown
Member

Thanks for including the test! I think this is probably good to go... Though, I'd want to ask you, since you're thinking about this topic, you might have certain expected behavior in mind. Should we be testing for that behavior?

@4JX

4JX commented Aug 25, 2022

Copy link
Copy Markdown
Contributor Author

What I need is covered by the current test (and small fix). That is, the setting is included in the SETTINGS frame with the value set by the user (and the client successfully handles requests with that setting enabled).

Might be worth to also test that it will throw a protocol error in the server requested size > header_table_size case? (Though I'm not sure if this should be another function / part of the same test / part of the codec read ones)

@alexforster

Copy link
Copy Markdown

@seanmonstar Is there anything I can do to help this get merged?

@seanmonstar

Copy link
Copy Markdown
Member

I don't remember what test I was asking for... What's here seems good. Just needs conflicts resolved and we can merge.

@4JX

4JX commented Oct 23, 2023

Copy link
Copy Markdown
Contributor Author

Rebased onto master and squashed the commits together. Did compile and pass the tests locally.

@4JX

4JX commented Oct 29, 2023

Copy link
Copy Markdown
Contributor Author

Just making sure this is not waiting on CI? Doesn't seem like the error is related to code touched by this PR.

@seanmonstar

Copy link
Copy Markdown
Member

Sorry, I fixed CI in #722, restarting it here.

@seanmonstar seanmonstar merged commit ef743ec into hyperium:master Oct 30, 2023
0xE282B0 pushed a commit to 0xE282B0/h2 that referenced this pull request Jan 11, 2024
0xE282B0 pushed a commit to 0xE282B0/h2 that referenced this pull request Jan 11, 2024
0xE282B0 pushed a commit to 0xE282B0/h2 that referenced this pull request Jan 16, 2024
Signed-off-by: Sven Pfennig <s.pfennig@reply.de>
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

Successfully merging this pull request may close these issues.

Add a setter for header_table_size

3 participants