From 2d1204fa50faef4bd2302bcacb641ea98e3f5630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hal=C3=A1sz?= Date: Wed, 9 Jan 2019 08:11:13 +0100 Subject: [PATCH] Do not report an error in websocket_log when closing a VNC connection --- lib/websocket_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/websocket_server.rb b/lib/websocket_server.rb index 646c8478ac2..85166d7ebcf 100644 --- a/lib/websocket_server.rb +++ b/lib/websocket_server.rb @@ -39,7 +39,7 @@ def initialize(options = {}) @proxy.each_ready do |left, right| begin @adapters[left].fetch(64.kilobytes) { |data| @adapters[right].issue(data) } # left -> right - rescue IOError + rescue IOError, IO::WaitReadable, IO::WaitWritable cleanup(:info, "Closing websocket proxy for VM %{vm_id}", left, right) rescue StandardError => ex cleanup(:error, "Websocket proxy for VM %{vm_id} errored with #{ex} #{ex.backtrace.join("\n")}", left, right)