sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 347 forks source link

websocket lager number > 65536 writeFrame bug #247

Open baiyfcu opened 6 years ago

baiyfcu commented 6 years ago

else { lenByte |= 127; frame.putU8(lenByte); frame.putU64(static_cast<uint16_t>(len)); }

frame.putU64(static_cast(len)); ==> frame.putU64(static_cast(len)); that's all.

traw commented 6 years ago

If you be more specific, by mentioning exact file and line number, then it might be helpful for others. Best way would be to attach git patch in issue.

baiyfcu commented 6 years ago

@traw websocket.cpp line 475