Fix test_max_incomplete_event_size_countermeasure test#184
Fix test_max_incomplete_event_size_countermeasure test#184anton-ryzhov wants to merge 1 commit intopython-hyper:masterfrom
test_max_incomplete_event_size_countermeasure test#184Conversation
|
@njsmith does this PR miss something or could it be merged? |
|
I guess I'm not seeing anything wrong with this, but I also don't understand what the purpose of this is? What was it not testing before that it does test now? |
|
These two blocks demonstrate and test that the same payload is handled fine with But in fact the first block doesn't ensure that, it doesn't fail if we set So, the successful case was always successful regardless of the configuration |
|
Ohh I see yeah that makes sense for the first change, good catch. Still don't think I understand the motivation for the second change? |
To be honest I don't remember.
Do you want me to revert it? |
This test was not actually testing what it should —
max_incomplete_event_sizelimit is only checked for incomplete events, for request before"\r\n\r\n".get_all_events()before"\r\n\r\n"conditionally raises an exception depending onmax_incomplete_event_size