9bf1f2529a
Don't call native methods on a socket which is closed or in process of being closed. On some OSes this will crash the VM because underlying FD is actually a malloc allocated handle object which will be destroyed by the event handler once it receives and processes close request. BUG=b/335437875 TEST=standalone/io/abrupt_close_test Change-Id: I557d725a6cce020a6a1e3df0bd3e2c836a6a6964 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/467841 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Slava Egorov <vegorov@google.com>