dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.06k stars 1.56k forks source link

[CP] [ dart:io ] Fix minor bugs in network profiler | https://dart-review.googlesource.com/c/sdk/+/375800 #56273

Closed bkonyi closed 3 weeks ago

bkonyi commented 1 month ago

Commit(s) to merge

791163eef8dd8d2deaaaf5e9c3ecb96308d8a7b3

Target

beta

Prepared changelist for beta/stable

https://dart-review.googlesource.com/c/sdk/+/376125

Issue Description

What is the fix

Why cherry-pick

The network page is difficult to use and confusing for Socket traffic without this change. We have several users blocked by this broken experience. The issue had 10 upvotes, several other duplicate issues filed, and chatter on Discord.

Risk

Low

Issue link(s)

flutter/devtools#8050, flutter/devtools#3033, flutter/devtools#6642

Extra Info

No response

bkonyi commented 1 month ago

cc @kenzieschmoll

dart-github-bot commented 1 month ago

Summary: This issue addresses two bugs in the Dart network profiler: Socket data displays addresses in a confusing format, and HTTP requests don't show as completed if HttpClientResponse.listen isn't called. The fix improves the user experience by displaying addresses correctly and ensuring HTTP requests are properly marked as completed.

a-siva commented 1 month ago

lgtm

bkonyi commented 1 month ago

@itsjustkevin is this safe to merge?

itsjustkevin commented 1 month ago

Yes @bkonyi please merge.