io: Add support for fragmented websocket binary frames
commitff1300e626949fa9850b0f91dc5e8c2cb45b6a88
authorBrandon Carpenter <brandon.carpenter@cypherpath.com>
Tue, 12 Sep 2017 15:21:49 +0000 (12 08:21 -0700)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 4 Oct 2017 12:21:53 +0000 (4 13:21 +0100)
tree197f76576bfb71b5bf918a35f610b11fd6ca0618
parenteefa3d8ef649f9055611361e2201cca49f8c3433
io: Add support for fragmented websocket binary frames

Allows fragmented binary frames by saving the previous opcode. Handles
the case where an intermediary (i.e., web proxy) fragments frames
originally sent unfragmented by the client.

Signed-off-by: Brandon Carpenter <brandon.carpenter@cypherpath.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/io/channel-websock.h
io/channel-websock.c