-
Notifications
You must be signed in to change notification settings - Fork 86
[ DWDS ] Launch DDS when using the web socket proxy service #2706
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
Conversation
DDS is needed to serve DevTools, so the web socket proxy service should be setup to launch DDS at startup. This change also includes some significant refactors to reduce the amount of duplicate code that could be shared by the Chrome and web socket service implementations.
| requestStream: requestStream, | ||
| requestSink: requestSink, | ||
| dwdsStats: dwdsStats, | ||
| clientFuture: clientCompleter.future, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here I see that you no longer pass a clientFuture argument. Could this maybe cause an exception when we await the clientFuture downstream (ie. In maybeHandleServiceExtensionRequestImpl)?
I think we should pass the _clientCompleter.future from ChromeDwdsVmClient to the base class when we initialize it. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, because it doesn't need to be passed down any further and is only needed for the ChromeDwdsVmClient. If you look at this line, you'll see we still have the completion logic that runs after this initialize() method completes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, gotcha! Thanks
|
@bkonyi This is a great refactor! I just added a few comment for you to review. Thanks Ben |
|
Landing as the failures are due to a upstream bug unrelated to this change. |
DDS is needed to serve DevTools, so the web socket proxy service should be setup to launch DDS at startup.
This change also includes some significant refactors to reduce the amount of duplicate code that could be shared by the Chrome and web socket service implementations.