MBWebSocketServer icon indicating copy to clipboard operation
MBWebSocketServer copied to clipboard

Delegate receives too much unmasked data

Open tool opened this issue 12 years ago • 1 comments

The unmasked NSData that are being allocated in socket:didReadData:withTag: (tag = 6) isn't cut to it's correct size before sending it to the delegate. Therefore the delegate method, webSocketServer:didReceiveData:fromConnection:, gets called with too much data (= unmaskedData + waste data).

tool avatar Mar 08 '13 08:03 tool

I'm not sure this still applies in the new master which incorporates the ping branch.

mxcl avatar Mar 08 '13 18:03 mxcl