On 01/30/2017 04:51 AM, Daniel P. Berrange wrote: > The qio_channel_websock_read_wire() method will read upto 4096
s/upto/up to/ > bytes off the socket and then decode the websockets header and > payload. The code was only decoding a single websockets frame, > even if the buffered data contained multiple frames. This meant > that decoding of subsequent frames was delayed until further > input arrived on the socket. This backlog of delayed frames > gets worse & worse over time. > > Symptom was that when connecting to the VNC server via the > built-in websockets server, mouse/keyboard interaction would > start out fine, but slowly get more & more delayed until it > was unusable. > > Signed-off-by: Daniel P. Berrange <[email protected]> > --- > io/channel-websock.c | 28 ++++++++++++++-------------- > 1 file changed, 14 insertions(+), 14 deletions(-) > Reviewed-by: Eric Blake <[email protected]> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
