Skip to content
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

debug-agent: improvements #1977

Closed
wants to merge 3 commits into from
Closed

debug-agent: improvements #1977

wants to merge 3 commits into from

Conversation

3y3
Copy link

@3y3 3y3 commented Jun 14, 2015

Closes #858
Partially closes #781

@3y3 3y3 changed the title debug-agent improvements debug-agent: improvements Jun 14, 2015
@@ -102,11 +106,17 @@ function Client(agent, socket) {
this.socket.on('close', function() {
self.destroy();
});
this.socket.on('error', function(err) {
// Silently handle socket errors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are silently ignoring the errors then why do we need this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unhandled error will be thrown and kills app.
Unhandled 'error' event...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this is a place for discussion. I don't know how we need to handle debugger connection errors (My opinion is - we don't need to do anything on debugger connection errors, because this is debugging of debugger)

@Fishrock123
Copy link
Contributor

cc @indutny (I think?)

@@ -6,6 +6,8 @@ const util = require('util');
const Buffer = require('buffer').Buffer;
const Transform = require('stream').Transform;

const disconnectRequest = "{\"seq\":1,\"type\":\"request\",\"command\":\"disconnect\"}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any point in not using JSON.stringify() here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is backported from old debugger implementation, there is no other reasons.

@indutny
Copy link
Member

indutny commented Jun 15, 2015

Needs test with multiple clients trying to connect, and only one client succeeding. The the third client should be able to connect again after that succeeded one disconnected.

@indutny
Copy link
Member

indutny commented Jun 15, 2015

Otherwise LGTM. Thank you!

@jasnell
Copy link
Member

jasnell commented Nov 16, 2015

@3y3 ... is this still something you'd like to pursue?

@jasnell
Copy link
Member

jasnell commented Mar 22, 2016

Closing due to lack of activity and response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stalled Issues and PRs that are stalled.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debugger: current multi clients system is unuseful DebuggerAgent: unhandled socket error event
6 participants