boostorg / beast

HTTP and WebSocket built on Boost.Asio in C++11
http://www.boost.org/libs/beast
Boost Software License 1.0
4.36k stars 635 forks source link

Client should close with 1010 if permessage-deflate offer is rejected #313

Open vinniefalco opened 7 years ago

vinniefalco commented 7 years ago

When the client configuration requires the permessage-deflate extension and the server does not offer it in the response, the client should perform the WebSocket Close with 1010 (close_code::needs_extension).

badgujarsachin83 commented 2 years ago

i want to work on this issue .can you tell you breifly how to solve this issue.

madmongo1 commented 2 years ago

I think a good start would be to set up a test that sets up the above scenario. Then place a breakpoint in the code for the async operation for async_handshake and the sync operation for handshake.