-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Tests for inflator failure. #8582
base: master
Are you sure you want to change the base?
Conversation
@Fischiii a big thanks for doing this. |
OK, thanks for the repro. See Fischiii#1 that you can merge into your PR. But
Context takeover discussed here https://websockets.readthedocs.io/en/stable/topics/compression.html#compression-parameters Final block discussed here https://datatracker.ietf.org/doc/html/rfc7692#section-7.2.1 @swankjesse do you remember the algorithm here? |
Fix/inflator failure
@yschimke merged |
I think I’ve isolated this? |
@swankjesse since the spec specifically has additional padding data, are we sure it's not just a difference between the spec padding and what our vanilla compression expects? |
#8551
Added tests to reproduce the issue.
Added one test with the broken deflated message:
"inflater left with deflated bytes"
Added another test with a similar, but working message:
"inflater left with deflated bytes working message"
The first test results in the exact same behaviour as we see within okhttp when we discovered the issue: #8551