Fix MessageReader to pass errors to the channel
commita04c0468580e15cac8df104e63211e63c8589dda
authorsergeyu <sergeyu@chromium.org>
Thu, 14 May 2015 01:48:40 +0000 (13 18:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 14 May 2015 01:49:03 +0000 (14 01:49 +0000)
treed6130537f45e125565afed3c076641654d8ca4e9
parent915be3ac68022aa3019bd4d79302fce41ad04b75
Fix MessageReader to pass errors to the channel

Previously MessageReader was stopping reading after the first error,
but wasn't notifying the client about the problem. This results in some
errors (e.g. from SSL layer) being ignores while they should terminate
connection.

BUG=487451

Review URL: https://codereview.chromium.org/1143443003

Cr-Commit-Position: refs/heads/master@{#329780}
remoting/protocol/channel_dispatcher_base.cc
remoting/protocol/channel_dispatcher_base.h
remoting/protocol/channel_multiplexer.cc
remoting/protocol/channel_multiplexer.h
remoting/protocol/client_video_dispatcher_unittest.cc
remoting/protocol/message_reader.cc
remoting/protocol/message_reader.h
remoting/protocol/message_reader_unittest.cc