io: Small updates in preparation for websocket changes
commiteefa3d8ef649f9055611361e2201cca49f8c3433
authorBrandon Carpenter <brandon.carpenter@cypherpath.com>
Tue, 12 Sep 2017 15:21:48 +0000 (12 08:21 -0700)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 4 Oct 2017 12:21:53 +0000 (4 13:21 +0100)
treeaa063ff8601422ea7e0344405cf086b98e628ecb
parenta75d6f07613af7ec5b016b31b117436e32ce7a5f
io: Small updates in preparation for websocket changes

Gets rid of unnecessary bit shifting and performs proper EOF checking to
avoid a large number of repeated calls to recvmsg() when a client
abruptly terminates a connection (bug fix).

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