summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/channel_dispatcher_base.h
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2015-05-13 18:48:40 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-14 01:49:03 +0000
commita04c0468580e15cac8df104e63211e63c8589dda (patch)
treed6130537f45e125565afed3c076641654d8ca4e9 /remoting/protocol/channel_dispatcher_base.h
parent915be3ac68022aa3019bd4d79302fce41ad04b75 (diff)
downloadchromium_src-a04c0468580e15cac8df104e63211e63c8589dda.zip
chromium_src-a04c0468580e15cac8df104e63211e63c8589dda.tar.gz
chromium_src-a04c0468580e15cac8df104e63211e63c8589dda.tar.bz2
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}
Diffstat (limited to 'remoting/protocol/channel_dispatcher_base.h')
-rw-r--r--remoting/protocol/channel_dispatcher_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/protocol/channel_dispatcher_base.h b/remoting/protocol/channel_dispatcher_base.h
index 9a25cd0..64011b8 100644
--- a/remoting/protocol/channel_dispatcher_base.h
+++ b/remoting/protocol/channel_dispatcher_base.h
@@ -67,7 +67,7 @@ class ChannelDispatcherBase {
private:
void OnChannelReady(scoped_ptr<net::StreamSocket> socket);
- void OnWriteFailed(int error);
+ void OnReadWriteFailed(int error);
std::string channel_name_;
StreamChannelFactory* channel_factory_;