diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2017-09-06 11:33:17 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2017-10-04 13:21:53 +0100 |
commit | f69a8bde29354493ff8aea64cc9cb3b531d16337 (patch) | |
tree | a5792dbbfac78fcc4d666d95c4ac0b7e1ac34c31 /linux-user/strace.c | |
parent | d147f7e815f97cb477e223586bcb80c316ae10ea (diff) |
io: send proper HTTP response for websocket errors
When any error occurs while processing the websockets handshake,
QEMU just terminates the connection abruptly. This is in violation
of the HTTP specs and does not help the client understand what they
did wrong. This is particularly bad when the client gives the wrong
path, as a "404 Not Found" would be very helpful.
Refactor the handshake code so that it always sends a response to
the client unless there was an I/O error.
Fixes bug: #1715186
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'linux-user/strace.c')
0 files changed, 0 insertions, 0 deletions