summaryrefslogtreecommitdiffstats
path: root/include/io
diff options
context:
space:
mode:
authorBrandon Carpenter2017-09-12 17:21:52 +0200
committerDaniel P. Berrange2017-10-04 14:21:53 +0200
commit268a53f50de795481dd73ffd0e0c1339ad3dc44b (patch)
treea6263bab27acbf9ceb33c24d1b6298005d1c4261 /include/io
parentio: Ignore websocket PING and PONG frames (diff)
downloadqemu-268a53f50de795481dd73ffd0e0c1339ad3dc44b.tar.gz
qemu-268a53f50de795481dd73ffd0e0c1339ad3dc44b.tar.xz
qemu-268a53f50de795481dd73ffd0e0c1339ad3dc44b.zip
io: Reply to ping frames
Add an immediate ping reply (pong) to the outgoing stream when a ping is received. Unsolicited pongs are ignored. Signed-off-by: Brandon Carpenter <brandon.carpenter@cypherpath.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/io')
-rw-r--r--include/io/channel-websock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/io/channel-websock.h b/include/io/channel-websock.h
index 7c896557c5..ff32d8651b 100644
--- a/include/io/channel-websock.h
+++ b/include/io/channel-websock.h
@@ -60,6 +60,7 @@ struct QIOChannelWebsock {
Buffer encoutput;
Buffer rawinput;
Buffer rawoutput;
+ Buffer ping_reply;
size_t payload_remain;
QIOChannelWebsockMask mask;
guint io_tag;