diff options
author | Brandon Carpenter <brandon.carpenter@cypherpath.com> | 2017-09-12 08:21:52 -0700 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2017-10-04 13:21:53 +0100 |
commit | 268a53f50de795481dd73ffd0e0c1339ad3dc44b (patch) | |
tree | a6263bab27acbf9ceb33c24d1b6298005d1c4261 /include/io | |
parent | 01af17fc002414ee1ac0800babfb0edc2bef1a7d (diff) |
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.h | 1 |
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; |