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

Issue 9361034: Fix potential flakiness of SocketStreamCloseTest. (Closed)

Created:
8 years, 10 months ago by Mads Ager (google)
Modified:
8 years, 10 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix potential flakiness of SocketStreamCloseTest. Not reading out all 5 bytes before moving on. R=sgjesse@google.com BUG= TEST=

Patch Set 1 #

Patch Set 2 : Add flags and fix close handling on sockets. #

Total comments: 6

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -61 lines) Patch
M runtime/bin/socket_impl.dart View 1 2 3 chunks +22 lines, -15 lines 0 comments Download
M tests/standalone/src/SocketCloseTest.dart View 1 4 chunks +36 lines, -15 lines 0 comments Download
M tests/standalone/src/SocketStreamCloseTest.dart View 1 2 14 chunks +101 lines, -31 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mads Ager (google)
8 years, 10 months ago (2012-02-08 14:49:27 UTC) #1
Søren Gjesse
lgtm How about adding // VMOptions= // VMOptions=--short_socket_read // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write to the ...
8 years, 10 months ago (2012-02-08 15:03:54 UTC) #2
Mads Ager (google)
Adding the flags turned out to be a very good idea. Updated the tests to ...
8 years, 10 months ago (2012-02-09 18:42:53 UTC) #3
Søren Gjesse
LGTM! Nice work! https://chromiumcodereview.appspot.com/9361034/diff/3001/runtime/bin/socket_impl.dart File runtime/bin/socket_impl.dart (right): https://chromiumcodereview.appspot.com/9361034/diff/3001/runtime/bin/socket_impl.dart#newcode170 runtime/bin/socket_impl.dart:170: _EventHandler._sendData(_id, _handler, data); Add assert(_id >= ...
8 years, 10 months ago (2012-02-09 20:19:42 UTC) #4
Mads Ager (google)
8 years, 10 months ago (2012-02-10 06:56:47 UTC) #5
https://chromiumcodereview.appspot.com/9361034/diff/3001/runtime/bin/socket_i...
File runtime/bin/socket_impl.dart (right):

https://chromiumcodereview.appspot.com/9361034/diff/3001/runtime/bin/socket_i...
runtime/bin/socket_impl.dart:170: _EventHandler._sendData(_id, _handler, data);
On 2012/02/09 20:19:42, Søren Gjesse wrote:
> Add assert(_id >= 0) here.

Done.

https://chromiumcodereview.appspot.com/9361034/diff/3001/tests/standalone/src...
File tests/standalone/src/SocketStreamCloseTest.dart (right):

https://chromiumcodereview.appspot.com/9361034/diff/3001/tests/standalone/src...
tests/standalone/src/SocketStreamCloseTest.dart:228:
connection.outputStream.write("Hello".charCodes());
On 2012/02/09 20:19:42, Søren Gjesse wrote:
> Maybe we should add two more cases (variants of 3 and 6) with
> 
> connection.outputStream.write("Hello".charCodes());
> connection.inputStream.close();
> 
> without the use of noPendingWriteHandler, as that should be supported as well.

Done.

https://chromiumcodereview.appspot.com/9361034/diff/3001/tests/standalone/src...
tests/standalone/src/SocketStreamCloseTest.dart:230:
print("connection.inputStream.close();");
On 2012/02/09 20:19:42, Søren Gjesse wrote:
> Debug print.

Done.

Powered by Google App Engine
This is Rietveld 408576698