Questions tagged [permessagedeflate]

5 questions
1
vote
1 answer

Websocket Permessage-deflate not occuring in server -> client direction

I have written my own implementation of a websocket in python to teach myself their inner workings. I was going to be sending large repetitive JSON objects over the websocket so I am trying to implement permessage-deflate. The compression works in…
jeffpkamp
  • 2,732
  • 2
  • 27
  • 51
1
vote
0 answers

Do I need use messagePack serialization over JSON if my client and server already supported per message deflate compression?

My client and server are communicating through WebSocket with the JSON serialized data and both are supporting per message deflate and I suppose the JSON data is already compressed. The server is written on go and using gorrilla's WebSocket…
1
vote
1 answer

Websocket sharing LZ77 Sliding window - with context takeover

I am going over the permessage-deflate rfc and I don't understand the part about 'sharing LZ77 Sliding window' (section 7.2.3.2.) It says that If the "agreed parameters" did not contain the "client_no_context_takeover" extension parameter, the…
Alon Rew
  • 75
  • 1
  • 1
  • 8
0
votes
1 answer

Socket.io disable perMessageDeflate

When the server experience traffic increase there is a strange memory leak which inflates memory used from 600m to ±3gb and after few minutes it goes back to 600mb. This also spikes CPU usage and makes the server unresponsive. I found this thread…
0
votes
1 answer

The difference between node.js ws permessagedeflate zlib decompression and that of pako?

I have a node.js ws websocket that receives compressed data. The docs are very shallow about the inflate mechanism but from reading through source files it is clearly in-built and should be activated automatically depending on the type of received…
Anonymous
  • 4,692
  • 8
  • 61
  • 91