|
|
Start better error reporting for sockets
Changed the onError callback for sockets to take an exception argument.
First area to report errors for is name resolution.
Changed the IP address resolution from being synchronous with the
creation of the socket to being asynchronous thsough a lookup
service running on a native port. Currently this lookup service
is static on the socket class as we need to call it from a
factory method. We should probably add a separate name lookup
service at some point.
R=ager@google.com
BUG=
TEST=
Committed: https://code.google.com/p/dart/source/detail?r=5640
Total comments: 20
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+491 lines, -173 lines) |
Patch |
 |
M |
runtime/bin/builtin_natives.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/dartutils.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/dartutils.cc
|
View
|
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/http.dart
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/http_impl.dart
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket.h
|
View
|
|
2 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket.cc
|
View
|
1
|
2 chunks |
+88 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket.dart
|
View
|
1
2
|
4 chunks |
+21 lines, -6 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket_impl.dart
|
View
|
1
2
|
10 chunks |
+69 lines, -19 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket_linux.cc
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket_macos.cc
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket_win.cc
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/utils.h
|
View
|
1
2
3
|
2 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/utils_linux.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/utils_macos.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/utils_win.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/standalone/src/io/EchoServerStreamTest.dart
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/io/EchoServerTest.dart
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/io/SocketCloseTest.dart
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/io/SocketExceptionTest.dart
|
View
|
1
|
3 chunks |
+141 lines, -114 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/io/SocketManyConnectionsTest.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/io/SocketStreamCloseTest.dart
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/io/StreamPipeTest.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/standalone/src/io/TestingServer.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|