io: Attempt to send websocket close messages to client
commit530ca60c16c83435d4becc9916d74fa43e003815
authorBrandon Carpenter <brandon.carpenter@cypherpath.com>
Tue, 12 Sep 2017 15:21:53 +0000 (12 08:21 -0700)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 4 Oct 2017 12:21:53 +0000 (4 13:21 +0100)
tree3509d9bdb79a6a17e5f45385191f8d088b3b11c4
parent268a53f50de795481dd73ffd0e0c1339ad3dc44b
io: Attempt to send websocket close messages to client

Make a best effort attempt to close websocket connections according to
the RFC. Sends the close message, as room permits in the socket buffer,
and immediately closes the socket.

Signed-off-by: Brandon Carpenter <brandon.carpenter@cypherpath.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
io/channel-websock.c