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

Unified Diff: runtime/bin/socket.cc

Issue 9837060: Treat EAGAIN/EWOULDBLOCK as requests for retry on socket accept. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove error printing Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket.h ('k') | runtime/bin/socket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.cc
diff --git a/runtime/bin/socket.cc b/runtime/bin/socket.cc
index 054136030fa854631de37c9307ed1c9ae607bb13..71a08c76757fcb747f4668488b9401b0a609ca49 100644
--- a/runtime/bin/socket.cc
+++ b/runtime/bin/socket.cc
@@ -211,6 +211,8 @@ void FUNCTION_NAME(ServerSocket_Accept)(Dart_NativeArguments args) {
DartUtils::SetIntegerField(
socketobj, DartUtils::kIdFieldName, newSocket);
Dart_SetReturnValue(args, Dart_True());
+ } else if (newSocket == ServerSocket::kTemporaryFailure) {
+ Dart_SetReturnValue(args, Dart_False());
} else {
Dart_SetReturnValue(args, DartUtils::NewDartOSError());
}
« no previous file with comments | « runtime/bin/socket.h ('k') | runtime/bin/socket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698