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

Issue 9837060: Treat EAGAIN/EWOULDBLOCK as requests for retry on socket accept. (Closed)

Created:
8 years, 9 months ago by Mads Ager (google)
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Treat EAGAIN/EWOULDBLOCK as requests for retry on socket accept. On Linux there are a number of protocol errors that can be returned from accept. According to the linux man pages they should be treated as EAGAIN. This should hopefully fix the flakiness of EchoServerStreamTest. R=iposva@google.com,sgjesse@google.com BUG=2262 TEST= Committed: https://code.google.com/p/dart/source/detail?r=5797

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove error printing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -5 lines) Patch
M runtime/bin/socket.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/socket.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/socket_impl.dart View 1 chunk +5 lines, -1 line 0 comments Download
M runtime/bin/socket_linux.cc View 1 1 chunk +19 lines, -2 lines 0 comments Download
M runtime/bin/socket_macos.cc View 1 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Mads Ager (google)
8 years, 9 months ago (2012-03-23 20:56:44 UTC) #1
Ivan Posva
8 years, 9 months ago (2012-03-23 21:09:48 UTC) #2
LGTM -ip

https://chromiumcodereview.appspot.com/9837060/diff/1/runtime/bin/socket_linu...
File runtime/bin/socket_linux.cc (right):

https://chromiumcodereview.appspot.com/9837060/diff/1/runtime/bin/socket_linu...
runtime/bin/socket_linux.cc:215: fprintf(stderr, "Error Accept: %s\n",
strerror(errno));
Mads says this should be removed.

https://chromiumcodereview.appspot.com/9837060/diff/1/runtime/bin/socket_maco...
File runtime/bin/socket_macos.cc (right):

https://chromiumcodereview.appspot.com/9837060/diff/1/runtime/bin/socket_maco...
runtime/bin/socket_macos.cc:206: fprintf(stderr, "Error Accept: %s\n",
strerror(errno));
ditto.

Powered by Google App Engine
This is Rietveld 408576698