82d1382faa
We had a scenario where read&write events were requested after the socket was closed, leading to a use-after-free. This also fixes a scenario where we didn't delete client sockets, when accepted sockets are ignored when closing a listening socket. BUG=https://code.google.com/p/dart/issues/detail?id=18610 R=sgjesse@google.com Review URL: https://codereview.chromium.org//269003002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35732 260f80e4-7a28-3924-810f-c04153c831b5