ericmoritz / wsdemo

A Cowboy Websocket demo
Other
405 stars 58 forks source link

websocket_client expects complete payload to be delivered at once #16

Closed einaros closed 12 years ago

einaros commented 12 years ago

I noticed that websocket frames which are delivered across two or more packets will cause a badframe error - that's not ideal. You don't really have any guarantee that all Len bytes of the payload are readily available when unframe is executed.

ericmoritz commented 12 years ago

Thanks. This bug cropped up when I was benchmarking the wsdemo-ws.js server last night. It is fixed in the eleveldb-logging branch.