ztellman/aleph — Issue #47: Hang on receive when frame >= 126 bytes received
Author: kanaka
Created: 2012-01-10 00:03:15+00:00
State: open

Sending a payload larger than 125 bytes cause the receive to hang in my aleph server.

According to the spec, if the length field is 126 bytes, then the following two bytes are used as the length. If the field is 127, then the following 8 bytes indicate the length. I'm not familiar with how the defcodec logic works in src/aleph/http/websocket/protocol.clj, but I'm guessing that the length isn't being parsed out and used correctly. I'm still looking at it but figuring it might be obvious to you.