0e535e710b
The resumer in `resume_shutdown_race_test.dart` was running in a tight `do-while` loop, hammering the VM server with `getVM` and `getIsolate` requests to check if all isolates are paused at exit. During VM shutdown, this rapid sequence of requests could cause socket exhaustion, especially on Windows, or trigger transient connection errors. This is fixed by adding a 10ms delay using `Future.delayed` at the end of each iteration, and wrapping the loop's HTTP request block in a `try-catch` block to gracefully log and ignore transient connection or request errors during VM shutdown. Change-Id: I1bfcad7505254a1feb59dfb654421547efc02d46 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/508720 Commit-Queue: Ben Konyi <bkonyi@google.com> Reviewed-by: Mark Zhou <markzipan@google.com> Auto-Submit: Ben Konyi <bkonyi@google.com> Commit-Queue: Mark Zhou <markzipan@google.com>
A library to access the VM Service Protocol.
Usage
See the example for a simple use of the library's API.
The VM Service Protocol specification can be found at github.com/dart-lang/sdk/runtime/vm/service/service.md.
Features and bugs
Please file feature requests and bugs at the issue tracker.