summary refs log tree commit diff stats
path: root/include/io/channel-websock.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-10-17 11:29:51 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-10-17 11:29:52 +0100
commitdabc50e4c68c1be046d4a42908af0f9df69f910a (patch)
tree91f9f2dcdd15564650b79f8ad0bf5ad953995634 /include/io/channel-websock.h
parent9f99c85c4a364f8de8134eb53b0cc1b84ded4b3f (diff)
parent7fc3fcefe2fc5966c6aa1ef4f10e9740d8d73bf2 (diff)
downloadfocaccia-qemu-dabc50e4c68c1be046d4a42908af0f9df69f910a.tar.gz
focaccia-qemu-dabc50e4c68c1be046d4a42908af0f9df69f910a.zip
Merge remote-tracking branch 'remotes/berrange/tags/pull-qio-2017-10-16-1' into staging
Merge QIO 2017/10/16 v1

# gpg: Signature made Mon 16 Oct 2017 17:10:54 BST
# gpg:                using RSA key 0xBE86EBB415104FDF
# gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>"
# gpg:                 aka "Daniel P. Berrange <berrange@redhat.com>"
# Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF

* remotes/berrange/tags/pull-qio-2017-10-16-1:
  io: fix mem leak in websock error path
  io: add trace points for websocket HTTP protocol headers
  io: cope with websock 'Connection' header having multiple values
  io: get rid of bounce buffering in websock write path
  io: pass a struct iovec into qio_channel_websock_encode
  io: get rid of qio_channel_websock_encode helper method
  io: simplify websocket ping reply handling
  io: monitor encoutput buffer size from websocket GSource
  sockets: Handle race condition between binds to the same port
  sockets: factor out create_fast_reuse_socket
  sockets: factor out a new try_bind() function

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/io/channel-websock.h')
-rw-r--r--include/io/channel-websock.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/io/channel-websock.h b/include/io/channel-websock.h
index ff32d8651b..a7e5e92e61 100644
--- a/include/io/channel-websock.h
+++ b/include/io/channel-websock.h
@@ -59,9 +59,8 @@ struct QIOChannelWebsock {
     Buffer encinput;
     Buffer encoutput;
     Buffer rawinput;
-    Buffer rawoutput;
-    Buffer ping_reply;
     size_t payload_remain;
+    size_t pong_remain;
     QIOChannelWebsockMask mask;
     guint io_tag;
     Error *io_err;