Repository navigation
Add gzip support - #271
Add gzip support#271ben-ng wants to merge 3 commits into
Conversation
|
I'm down. But we need:
|
|
Cool! Will add those after work. |
|
Really appreciate it |
|
Might also want to apply it for the jsonp transport. |
|
Speaking of which, we might want to consider using this to turn off/on WebSocket DEFLATE frames |
|
you might also want to explore zopfli for compression. |
|
Too slow, better for non-realtime compression, as it's basically brute force gzip. We do use zopfli on the socket.io CDN On Wed, Jul 30, 2014 at 1:38 AM, Arnout Kazemier notifications@github.com
|
|
It slipped my mind this morning that I'm leaving on a short 5 day vacation today, so i'll finish up this PR when I get back if someone else doesn't beat me to it. I measured the impact of this change on our prod server this morning, it's a 3x speed improvement for responses in the ~500kb range. Absolutely terrific, shaved 2 seconds off our app bootstrapping process. |
|
Superb! Thanks for the update— On Wed, Jul 30, 2014 at 1:48 AM, Ben notifications@github.com wrote:
|
|
Thank you for the comments @defunctzombie, I've implemented them. Working on tests next. |
|
Any suggestions on how to test this? I tried setting Even if that worked, I'd need to expose the |
|
@ben-mg this is better suited for server-side (Node.JS) tests, where you should be able to test it |
|
What's your situation with this @ben-ng? |
|
I couldn't figure out how to write the tests, and don't have the time to do it right now :/ (job, full-time student, etc..) |
|
@ben-ng I can look into getting some tests in if you like. |
|
@rase- that would really help me get started! I do not understand how the test suite works. |
|
Any updates ? |
|
I believe #299 supersedes this PR. Let me know if that is not the case. |
Not base64 encoding for no reason when using websockets
I personally wanted gzip support for long polling without needing nginx. This seems to work. Is there interest in adding this to engine.io or perhaps a separate module?