Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(967)

Issue 6359018: Remove aggressive DCHECK in remoting::protocol::MessageReader() (Closed)

Created:
9 years, 11 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, Sergey Ulanov, dmac, awong, garykac, Alpha Left Google
Visibility:
Public.

Description

Remove aggressive DCHECK in remoting::protocol::MessageReader() DCHECK(!read_pending_) actually may happen and causes unnecessary crashes. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72971

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M remoting/protocol/message_reader.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Alpha Left Google
sorry sergey the DCHECK may actually for 2 scenarios that I didn't expect so removing ...
9 years, 11 months ago (2011-01-28 05:36:42 UTC) #1
Alpha Left Google
The case that will trigger the problem: OnRead() calls HandleReadResult() which does a DoRead() in ...
9 years, 11 months ago (2011-01-28 05:40:12 UTC) #2
Sergey Ulanov
9 years, 11 months ago (2011-01-28 07:58:29 UTC) #3
LGTM

On Thu, Jan 27, 2011 at 9:36 PM, <hclam@chromium.org> wrote:

> Reviewers: sergeyu,
>
> Message:
> sorry sergey the DCHECK may actually for 2 scenarios that I didn't expect
> so
> removing it.
>
>
> Description:
> Remove aggressive DCHECK in remoting::protocol::MessageReader()
>
> DCHECK(!read_pending_) actually may happen and causes unnecessary crashes.
>
> BUG=None
> TEST=None
>
> Please review this at http://codereview.chromium.org/6359018/
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src
>
> Affected files:
>  M remoting/protocol/message_reader.cc
>
>
> Index: remoting/protocol/message_reader.cc
> diff --git a/remoting/protocol/message_reader.cc
> b/remoting/protocol/message_reader.cc
> index
>
3bbfd59e3c6aa6dccac72dcf11b04c069a5cd07a..d8324bef224961cd13587019184b339481dba087
> 100644
> --- a/remoting/protocol/message_reader.cc
> +++ b/remoting/protocol/message_reader.cc
> @@ -40,8 +40,6 @@ void MessageReader::Init(net::Socket* socket,
>  }
>
>  void MessageReader::DoRead() {
> -  DCHECK(!read_pending_);
> -
>   // Don't try to read again if there is another read pending or we
>   // have messages that we haven't finished processing yet.
>   while (!closed_ && !read_pending_ && pending_messages_ == 0) {
>
>
>

Powered by Google App Engine
This is Rietveld 408576698