qemu-e2k/include/io
Daniel P. Berrange 8dfd5f9651 io: get rid of bounce buffering in websock write path
Currently most outbound I/O on the websock channel gets copied into the
rawoutput buffer, and then immediately copied again into the encoutput
buffer, with a header prepended. Now that qio_channel_websock_encode
accepts a struct iovec, we can trivially remove this bounce buffering
and write directly to encoutput.

In doing so, we also now correctly validate the encoutput size against
the QIO_CHANNEL_WEBSOCK_MAX_BUFFER limit.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-10-16 16:57:08 +01:00
..
channel-buffer.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-command.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-file.h channel-file: fix wrong parameter comments 2017-05-10 10:18:57 +03:00
channel-socket.h sockets: Limit SocketAddressLegacy to external interfaces 2017-05-09 09:14:40 +02:00
channel-tls.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-util.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-watch.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-websock.h io: get rid of bounce buffering in websock write path 2017-10-16 16:57:08 +01:00
channel.h io: Add new qio_channel_read{, v}_all_eof functions 2017-09-06 10:11:54 -05:00
dns-resolver.h sockets: Limit SocketAddressLegacy to external interfaces 2017-05-09 09:14:40 +02:00
task.h sockets: Limit SocketAddressLegacy to external interfaces 2017-05-09 09:14:40 +02:00