io: Reply to ping frames
commit268a53f50de795481dd73ffd0e0c1339ad3dc44b
authorBrandon Carpenter <brandon.carpenter@cypherpath.com>
Tue, 12 Sep 2017 15:21:52 +0000 (12 08:21 -0700)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 4 Oct 2017 12:21:53 +0000 (4 13:21 +0100)
treea6263bab27acbf9ceb33c24d1b6298005d1c4261
parent01af17fc002414ee1ac0800babfb0edc2bef1a7d
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>
include/io/channel-websock.h
io/channel-websock.c