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

Issue 10515015: Fix handling of long JSON messages (Closed)

Created:
8 years, 6 months ago by hausner
Modified:
8 years, 6 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, devoncarew, keertip
Visibility:
Public.

Description

Fix handling of long JSON messages Fix Debugger wire protocol for long messages. Add a stress mode in the protocol handler to break messages into small pieces. Committed: https://code.google.com/p/dart/source/detail?r=8269

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -19 lines) Patch
M runtime/bin/dbg_connection.cc View 1 2 chunks +31 lines, -3 lines 0 comments Download
M tools/ddbg.dart View 2 chunks +20 lines, -16 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
hausner
8 years, 6 months ago (2012-06-04 21:30:57 UTC) #1
siva
lgtm http://codereview.chromium.org/10515015/diff/1/runtime/bin/dbg_connection.cc File runtime/bin/dbg_connection.cc (right): http://codereview.chromium.org/10515015/diff/1/runtime/bin/dbg_connection.cc#newcode206 runtime/bin/dbg_connection.cc:206: // Sending messages in short pieces can be ...
8 years, 6 months ago (2012-06-04 21:41:12 UTC) #2
siva
http://codereview.chromium.org/10515015/diff/1/runtime/bin/dbg_connection.cc File runtime/bin/dbg_connection.cc (right): http://codereview.chromium.org/10515015/diff/1/runtime/bin/dbg_connection.cc#newcode224 runtime/bin/dbg_connection.cc:224: // Wait briefly so the OS does not coalesce ...
8 years, 6 months ago (2012-06-04 21:43:23 UTC) #3
hausner
8 years, 6 months ago (2012-06-04 22:28:16 UTC) #4
Thanks Shiva.

http://codereview.chromium.org/10515015/diff/1/runtime/bin/dbg_connection.cc
File runtime/bin/dbg_connection.cc (right):

http://codereview.chromium.org/10515015/diff/1/runtime/bin/dbg_connection.cc#...
runtime/bin/dbg_connection.cc:206: // Sending messages in short pieces can be
used to stress thest the
On 2012/06/04 21:41:12, asiva wrote:
> s/thest/test/
Oops, forgot to update. Thanks.

http://codereview.chromium.org/10515015/diff/1/runtime/bin/dbg_connection.cc#...
runtime/bin/dbg_connection.cc:224: // Wait briefly so the OS does not coalesce
message fragments.
Ok good idea. But I don't want to add stuff to the platform-dependent code,
which is what I'd have to do for this.

On 2012/06/04 21:43:23, asiva wrote:
> that should be TCP_NODELAY
> 
> On 2012/06/04 21:41:12, asiva wrote:
> > There is another way to handle this. If you set the scoket option TCP_DELAY
on
> > this socket then the OS will not try to coalesce message fragments and
instead
> > will send them out instantly.
>

Powered by Google App Engine
This is Rietveld 408576698