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

Issue 872633002: Use 'print' to send responses/notifications to the client. (Closed)

Created:
5 years, 11 months ago by scheglov
Modified:
5 years, 11 months ago
CC:
reviews_dartlang.org, ricow1
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Use 'print' to send responses/notifications to the client. Ensure that Java client reads lines in a separate thread, so that server's stdout never overflows. R=brianwilkerson@google.com, danrubel@google.com, paulberry@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=43123

Patch Set 1 #

Total comments: 8

Patch Set 2 : Always enable 'print' in the server. #

Patch Set 3 : Spec tweak. #

Patch Set 4 : Use non-blocking 'stdout', revert 'print' changes. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -108 lines) Patch
M editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java View 1 5 chunks +50 lines, -19 lines 0 comments Download
M pkg/analysis_server/doc/api.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/channel/byte_stream_channel.dart View 1 2 3 6 chunks +11 lines, -88 lines 1 comment Download
M pkg/analysis_server/lib/src/server/stdio_server.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/spec_input.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
scheglov
5 years, 11 months ago (2015-01-23 06:18:08 UTC) #1
danrubel
LGTM. Thanks! https://codereview.chromium.org/872633002/diff/1/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java File editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java (right): https://codereview.chromium.org/872633002/diff/1/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java#newcode57 editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java:57: if (!line.contains("\"result\":{\"version\":\"0.0.1\"}")) { I believe that this ...
5 years, 11 months ago (2015-01-23 14:16:54 UTC) #2
Paul Berry
I believe this will only work if the client supplies the "--internal-print-to-console" flag when starting ...
5 years, 11 months ago (2015-01-23 15:17:34 UTC) #3
Brian Wilkerson
Paul's understanding matches mine. I wouldn't have expected that this code would work, but I'm ...
5 years, 11 months ago (2015-01-23 16:08:10 UTC) #4
scheglov
PTAL @Paul: 1. You are right, we need to enable "print" function always and get ...
5 years, 11 months ago (2015-01-23 16:27:40 UTC) #5
Brian Wilkerson
LGTM > 3. The existing ByteStreamServerChannel class is not used currently, but it > might ...
5 years, 11 months ago (2015-01-23 16:39:31 UTC) #6
scheglov
PTAL It seems from my experiment on Linux with a big Dart project that using ...
5 years, 11 months ago (2015-01-23 21:04:57 UTC) #7
Paul Berry
lgtm, with one comment below. Thanks for looking into this, Konstantin. https://codereview.chromium.org/872633002/diff/60001/pkg/analysis_server/lib/src/channel/byte_stream_channel.dart File pkg/analysis_server/lib/src/channel/byte_stream_channel.dart (right): ...
5 years, 11 months ago (2015-01-23 21:26:00 UTC) #8
danrubel
LGTM.
5 years, 11 months ago (2015-01-23 21:27:15 UTC) #9
scheglov
5 years, 11 months ago (2015-01-23 21:33:46 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 43123 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698