-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not report an error in websocket_log when closing a VNC connection #18342
Conversation
@skateman 'djberg96, kbrock jrafanie' is an invalid reviewer, ignoring... |
Checked commit skateman@2d1204f with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Looking at the exception hierarchy, those are subclasses of |
@djberg96 where are you looking at the hierarchy? Just because: IO::WaitReadable < Errno::EAGAIN
=> nil I think the |
Looking at IO select docs, ( I believe that's what you're doing here, right?), the two additional exceptions seems appropriate. |
@jrafanie we're not really calling
All the transmissions for any protocol combination eventually end up calling those two methods. |
When closing a VNC console, the transmission block (1) can throw an
IO::WaitWritable
or with an even higher probability anIO::WaitReadable
exception. These are not inherited from theIOError
, so the cleanup will not treat this a closed exception (2) but as an error (3).The cleanup function is the same for both (2) and (3), the only difference is the way how we report them into the websocket log, That's the problem I'm trying to fix here by adding the 2 exception classes into (2).
@miq-bot add_label bug, providers/console, hammer/no
@miq-bot add_reviewer @djberg96, @kbrock @jrafanie