-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Compression broken in 3.0 #24
Comments
Potential fix: 3.x...fix-compression The compression context factory will also need to be passed to the acceptor. |
That fixes it, but there still seems to be an issue depending on the header sent by the client. Working:
Not working:
The difference in HTTP response is the presence of the |
What is the header sent by the server in the case which isn't working? |
Full response below:
|
Ah, that's because the |
I can reopen the issue there if you like. It seems the issue affecting this package is fixed in 3.x...fix-compression |
Sure, it will remind me to take care of it. FYI, after discussing this issue a bit with @kelunik we are considering deprecating the compression factory parameter to the client factory and not supporting compression with 3.0 and releasing a 4.0 with an interface which combines |
What would it take to help keep compression working for now? Refactoring interfaces is fine but I am getting some pretty big bandwidth savings on compression of JSON messages > 80KB and most of my clients are mobile on unreliable networks so minimizing bandwidth is important. |
You can keep compression working for now by creating a |
Marked WebsocketCompressionContextFactory argument as deprecated and unused.
@bennnjamin I just tagged v4.0.0-beta.1 which refactors how compression is supported. The Please give this new version a try and provide any feedback you may have. Thank you! |
Thanks I will take a look when I get a chance. |
Tagged |
I am opening this issue now and will update as I dig into it further but so far I am not able to use compression at all since the 3.0 release. For now, disabling it has fixed the issue.
The way I'm enabling compression is like this:
Sending the header
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits.
from the client results in no extensions header response from the server. JustI'm pretty sure the issue is caused by the introduction of
Rfc6455Acceptor
.Rfc6455ClientFactory
sets the header and in testing, I can verify that code is executing and setting the header on client creation however the actual HTTP Response does not have the header in it.The text was updated successfully, but these errors were encountered: