f-list / fserv

Repository for the F-Chat server implementation.
BSD 2-Clause "Simplified" License
10 stars 5 forks source link

Fix encoding of websocket frames larger than 65535 bytes. #31

Closed kiranoot closed 10 years ago

kiranoot commented 10 years ago

The routine for encoding of websocket frame sizes larger than 65535 currently encodes them in the machine endianess, instead of big endian as required by the websocket standard.

This leads to disconnects for messages larger than 65535 bytes as they are encoded as being several exabytes in size.