Commit 791163e
[ dart:io ] Fix minor bugs in network profiler
Fixes issues where:
- Socket profile addresses were set using `InternetAddress.toString()`
instead of `InternetAddress.address`
- HTTP requests were not being marked as completed if `listen(...)` was
not called on the `HttpClientResponse`
- An exception could be thrown from profiling code if an HTTP response
was completed after it was already completed with an error
Change-Id: I572928b77c4b1eb241acc7ec29f0e95dd7b2da8a
CoreLibraryReviewExempt: Only impacts dart:io network profiling logic
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/375800
Commit-Queue: Ben Konyi <[email protected]>
Reviewed-by: Derek Xu <[email protected]>
Auto-Submit: Ben Konyi <[email protected]>1 parent 3d33ef5 commit 791163e
2 files changed
+27
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
| |||
600 | 603 | | |
601 | 604 | | |
602 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
603 | 609 | | |
604 | 610 | | |
605 | 611 | | |
| |||
708 | 714 | | |
709 | 715 | | |
710 | 716 | | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
727 | 733 | | |
728 | 734 | | |
729 | 735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
| |||
0 commit comments