Uh oh!
There was an error while loading. Please reload this page.
Adjust max streams when remote settings change - #652
Conversation
dunkmann00
commented
Jan 26, 2023
Not sure where to put this so I'll just add it as another message. When I tested this against APNS, I was able to see the settings change come in. This is what the change in max concurrent streams specifically looked like: |
If the remote server sends a settings update for `max_concurrent_streams`, check and potentially update the max number of streams we will use for a connection.
dunkmann00
commented
Feb 20, 2023
Hello @tomchristie, just wanted to reach out to see if you or somebody from the encode team could review this? Thanks! |
lovelydinosaur
commented
Feb 23, 2023
Great stuff, thanks! 🎉 The CI reports a linting failure indicating that the async and sync versions don't match. You can resolve this locally by running I'd suggest resolving that first. Then you might want to take a look at https://github.com/encode/httpcore/blob/master/tests/_async/test_http2.py and see if you're able to add some test coverage for this. |
Improve testing for remote max streams update This new test checks whether a change in the max streams setting is properly handled. The max streams value is changed twice throughout the mock stream. The first update increases the value while the second update decreases it.
dunkmann00
commented
Feb 28, 2023
Okay I think this is good to go! Let me know if there are any other changes you would like me to make. |
dunkmann00
commented
Mar 8, 2023
Hey @tomchristie! Just checking in to see what you think of the recent commits with the added tests? |
lovelydinosaur
commented
Mar 16, 2023
Great work, thanks! |
lovelydinosaur
commented
Mar 16, 2023
Would be interesting to see this working together with our latest logging update... |
dunkmann00
commented
Mar 17, 2023
Thanks for the merge!
Are you planning on bumping the |
If the remote server sends a settings update for
max_concurrent_streams, check and potentially update the max number of streams we will use for a connection.This is related to encode/httpx#2416.