DescriptionKeep 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
Patch Set 1 #
Total comments: 3
Patch Set 2 : Rebased to r23389 #Patch Set 3 : Do not send anything to eventhandler after the close command has been sent #Patch Set 4 : Rebased to r24251 #Patch Set 5 : More fixes #Patch Set 6 : Some Windows fixes #Patch Set 7 : Fix Windows impl by 1) not waiting for client socket disconnect callbacks 2) close and delete file … #Patch Set 8 : Rebase #Patch Set 9 : Patch cleanup. #
Total comments: 20
Patch Set 10 : Review cleanup. #Patch Set 11 : Review update. #Patch Set 12 : Use DeleteIfClosed so simplity. #
Total comments: 8
Patch Set 13 : Remove delete_handle marker. #
Created: 7 years, 5 months ago
Messages
Total messages: 9 (0 generated)
|