-
Notifications
You must be signed in to change notification settings - Fork 37
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
SPDY compression pool #2
Comments
Yeah, it needs a |
Thank you :) Any special reason why have 3 empty arrays tagged with different versions? Also, could you enlighten me on what skipPreface really is? I see it is implemented on http2 but not in spdy:
|
Yes, three different versions for possibly three different zlib dictionaries. Each pools the zlib instances, because they are expensive to create and are easy to reuse. HTTP2 has a PREFACE, which is sometimes optional. If you do not want to expect it, and you most likely don't if you are not running real HTTP2 server - you should call |
Right, since this is supposed to be running on a server that has to support several client impl, it requires the 3 pools (In my head I was thinking of only supporting at max one impl at a time), got it, thanks :) Another question when it comes to tests, wondering if you have any trick to generate all of those http2 hex frames available in the tests. |
@diasdavid I'd use HEX frames, because later we will verify framer by just using parser. The way I did it for HTTP2 - was just packet sniffing. What kind of problems do you have, and with what frames? |
@indutny does creating a spdy compression pool require an extra option? Other than:
https://github.com/diasdavid/spdy-transport/blob/spdy-parser-tests/test/spdy/parser-test.js#L10-L13
Getting this err:
The text was updated successfully, but these errors were encountered: