-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Change HttpProfileRequestRef.id
type from String
to int
#51035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
//cc @bkonyi @derekxu16 |
This change SGTM. |
@itsjustkevin can you sign off on this please? :) |
|
lgtm |
LGTM. This may have an impact on devtools, cc @kenzieschmoll |
The change has now been landed from https://dart-review.googlesource.com/c/sdk/+/280020 |
Intent
HttpProfileRequestRef
to useString
for it'sid
type.ext.dart.io.getHttpProfileRequest
to useString
for the passedid
(instead ofint
).Justification
flutter/DevTools runs on web, so it only has access to 52 bit
int
.Using
String
to pass theid
will avoid overflowing theid
.Impact
These RPC calls were originally created for use with Devtools. I haven't been able to find any other internal uses of the RPC.
I'm unsure of how to check if any external customers depend on these.
Mitigation
ext.dart.io.getHttpProfile
orext.dart.io.getHttpProfileRequest
VmService callsHttpProfileRequestRef
orHttpProfileRequest
Changes
To see the specific proposed changes see: https://dart-review.googlesource.com/c/sdk/+/279122
While testing these changes I found that the
SocketStatics.id
type should be changed fromint
toString
as well.I am going to include that change in this breaking change as well.
The text was updated successfully, but these errors were encountered: