|
Keep track of when a socket has been destroyed
This adds the event CLOSED to RawSocket and RawServerSocket. This
event indicate that the underlying socket is now destroyed.
This is used to make Socket.close and ServerSocket.close return a
future which is completed when the unserlying socket is
destroyed. This can be used to start listening on the same port after
closing a server socket.
R=ajohnsen@google.com, kustermann@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=4155
Committed: https://code.google.com/p/dart/source/detail?r=25213
Total comments: 3
Total comments: 20
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+117 lines, -62 lines) |
Patch |
|
M |
pkg/http/test/safe_http_server.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
pkg/scheduled_test/lib/src/scheduled_server/safe_http_server.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/bin/eventhandler.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/eventhandler_android.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/eventhandler_linux.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/eventhandler_macos.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/eventhandler_win.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
11 chunks |
+19 lines, -22 lines |
0 comments
|
Download
|
|
M |
runtime/bin/socket_patch.dart
|
View
|
1
2
3
4
5
6
7
8
9
|
14 chunks |
+33 lines, -23 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/pub/lib/src/safe_http_server.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sdk/lib/io/http.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/http_impl.dart
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/socket.dart
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/raw_socket_test.dart
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+31 lines, -5 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/raw_socket_typed_data_test.dart
|
View
|
1
2
3
4
5
6
|
4 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/socket_exception_test.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|