{"action":"created","comment":{"url":"https://api.github.com/repos/nodejs/node/pulls/comments/37257999","id":37257999,"diff_hunk":"@@ -254,9 +254,18 @@ Client.prototype._onResponse = function(res) {\n \n \n Client.prototype.req = function(req, cb) {\n-  this.write(this.protocol.serialize(req));\n-  cb.request_seq = req.seq;\n-  this._reqCallbacks.push(cb);\n+  var self = this;\n+  self.write(this.protocol.serialize(req));\n+  var timer = setTimeout(function() {\n+    console.log('request timeout');\n+    self.emit('close');\n+  }, 3000);\n+  var _cb = function(err, res) {","path":"lib/_debugger.js","position":13,"original_position":13,"commit_id":"3c639a4ad28ff946c47d1951fb59b4df7db578d8","original_commit_id":"3c639a4ad28ff946c47d1951fb59b4df7db578d8","user":{"login":"thefourtheye","id":696611,"avatar_url":"https://avatars.githubusercontent.com/u/696611?v=3","gravatar_id":"","url":"https://api.github.com/users/thefourtheye","html_url":"https://github.com/thefourtheye","followers_url":"https://api.github.com/users/thefourtheye/followers","following_url":"https://api.github.com/users/thefourtheye/following{/other_user}","gists_url":"https://api.github.com/users/thefourtheye/gists{/gist_id}","starred_url":"https://api.github.com/users/thefourtheye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefourtheye/subscriptions","organizations_url":"https://api.github.com/users/thefourtheye/orgs","repos_url":"https://api.github.com/users/thefourtheye/repos","events_url":"https://api.github.com/users/thefourtheye/events{/privacy}","received_events_url":"https://api.github.com/users/thefourtheye/received_events","type":"User","site_admin":false},"body":"Why not `function _cb`?","created_at":"2015-08-18T02:03:16Z","updated_at":"2015-08-18T02:03:16Z","html_url":"https://github.com/nodejs/node/pull/2401#discussion_r37257999","pull_request_url":"https://api.github.com/repos/nodejs/node/pulls/2401","_links":{"self":{"href":"https://api.github.com/repos/nodejs/node/pulls/comments/37257999"},"html":{"href":"https://github.com/nodejs/node/pull/2401#discussion_r37257999"},"pull_request":{"href":"https://api.github.com/repos/nodejs/node/pulls/2401"}}},"pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/2401","id":42532982,"html_url":"https://github.com/nodejs/node/pull/2401","diff_url":"https://github.com/nodejs/node/pull/2401.diff","patch_url":"https://github.com/nodejs/node/pull/2401.patch","issue_url":"https://api.github.com/repos/nodejs/node/issues/2401","number":2401,"state":"open","locked":false,"title":"debugger: req-timeout emits close","user":{"login":"yorkie","id":1935767,"avatar_url":"https://avatars.githubusercontent.com/u/1935767?v=3","gravatar_id":"","url":"https://api.github.com/users/yorkie","html_url":"https://github.com/yorkie","followers_url":"https://api.github.com/users/yorkie/followers","following_url":"https://api.github.com/users/yorkie/following{/other_user}","gists_url":"https://api.github.com/users/yorkie/gists{/gist_id}","starred_url":"https://api.github.com/users/yorkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorkie/subscriptions","organizations_url":"https://api.github.com/users/yorkie/orgs","repos_url":"https://api.github.com/users/yorkie/repos","events_url":"https://api.github.com/users/yorkie/events{/privacy}","received_events_url":"https://api.github.com/users/yorkie/received_events","type":"User","site_admin":false},"body":"To reproduce this bug, run `node debug any.js` and type the n(next) until the debugger and terminal do not have any response. This might be an issue of v8's DebuggerProtocol, but do we should add a **request-timeout** to handle with the above error at Node.js?\r\n","created_at":"2015-08-16T08:30:20Z","updated_at":"2015-08-18T02:03:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1be9b46f169fb2ae2189812fe62fc361014ea264","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nodejs/node/pulls/2401/commits","review_comments_url":"https://api.github.com/repos/nodejs/node/pulls/2401/comments","review_comment_url":"https://api.github.com/repos/nodejs/node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodejs/node/issues/2401/comments","statuses_url":"https://api.github.com/repos/nodejs/node/statuses/3c639a4ad28ff946c47d1951fb59b4df7db578d8","head":{"label":"yorkie:fix/debugger","ref":"fix/debugger","sha":"3c639a4ad28ff946c47d1951fb59b4df7db578d8","user":{"login":"yorkie","id":1935767,"avatar_url":"https://avatars.githubusercontent.com/u/1935767?v=3","gravatar_id":"","url":"https://api.github.com/users/yorkie","html_url":"https://github.com/yorkie","followers_url":"https://api.github.com/users/yorkie/followers","following_url":"https://api.github.com/users/yorkie/following{/other_user}","gists_url":"https://api.github.com/users/yorkie/gists{/gist_id}","starred_url":"https://api.github.com/users/yorkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorkie/subscriptions","organizations_url":"https://api.github.com/users/yorkie/orgs","repos_url":"https://api.github.com/users/yorkie/repos","events_url":"https://api.github.com/users/yorkie/events{/privacy}","received_events_url":"https://api.github.com/users/yorkie/received_events","type":"User","site_admin":false},"repo":{"id":40772284,"name":"node","full_name":"yorkie/node","owner":{"login":"yorkie","id":1935767,"avatar_url":"https://avatars.githubusercontent.com/u/1935767?v=3","gravatar_id":"","url":"https://api.github.com/users/yorkie","html_url":"https://github.com/yorkie","followers_url":"https://api.github.com/users/yorkie/followers","following_url":"https://api.github.com/users/yorkie/following{/other_user}","gists_url":"https://api.github.com/users/yorkie/gists{/gist_id}","starred_url":"https://api.github.com/users/yorkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorkie/subscriptions","organizations_url":"https://api.github.com/users/yorkie/orgs","repos_url":"https://api.github.com/users/yorkie/repos","events_url":"https://api.github.com/users/yorkie/events{/privacy}","received_events_url":"https://api.github.com/users/yorkie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yorkie/node","description":"Future Node.js releases will be from this repo.","fork":true,"url":"https://api.github.com/repos/yorkie/node","forks_url":"https://api.github.com/repos/yorkie/node/forks","keys_url":"https://api.github.com/repos/yorkie/node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yorkie/node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yorkie/node/teams","hooks_url":"https://api.github.com/repos/yorkie/node/hooks","issue_events_url":"https://api.github.com/repos/yorkie/node/issues/events{/number}","events_url":"https://api.github.com/repos/yorkie/node/events","assignees_url":"https://api.github.com/repos/yorkie/node/assignees{/user}","branches_url":"https://api.github.com/repos/yorkie/node/branches{/branch}","tags_url":"https://api.github.com/repos/yorkie/node/tags","blobs_url":"https://api.github.com/repos/yorkie/node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yorkie/node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yorkie/node/git/refs{/sha}","trees_url":"https://api.github.com/repos/yorkie/node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yorkie/node/statuses/{sha}","languages_url":"https://api.github.com/repos/yorkie/node/languages","stargazers_url":"https://api.github.com/repos/yorkie/node/stargazers","contributors_url":"https://api.github.com/repos/yorkie/node/contributors","subscribers_url":"https://api.github.com/repos/yorkie/node/subscribers","subscription_url":"https://api.github.com/repos/yorkie/node/subscription","commits_url":"https://api.github.com/repos/yorkie/node/commits{/sha}","git_commits_url":"https://api.github.com/repos/yorkie/node/git/commits{/sha}","comments_url":"https://api.github.com/repos/yorkie/node/comments{/number}","issue_comment_url":"https://api.github.com/repos/yorkie/node/issues/comments{/number}","contents_url":"https://api.github.com/repos/yorkie/node/contents/{+path}","compare_url":"https://api.github.com/repos/yorkie/node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yorkie/node/merges","archive_url":"https://api.github.com/repos/yorkie/node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yorkie/node/downloads","issues_url":"https://api.github.com/repos/yorkie/node/issues{/number}","pulls_url":"https://api.github.com/repos/yorkie/node/pulls{/number}","milestones_url":"https://api.github.com/repos/yorkie/node/milestones{/number}","notifications_url":"https://api.github.com/repos/yorkie/node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yorkie/node/labels{/name}","releases_url":"https://api.github.com/repos/yorkie/node/releases{/id}","created_at":"2015-08-15T16:54:25Z","updated_at":"2015-08-15T16:54:29Z","pushed_at":"2015-08-16T11:45:27Z","git_url":"git://github.com/yorkie/node.git","ssh_url":"git@github.com:yorkie/node.git","clone_url":"https://github.com/yorkie/node.git","svn_url":"https://github.com/yorkie/node","homepage":"https://iojs.org","size":141003,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nodejs:master","ref":"master","sha":"4c06515a2f13c9b0890b374bb3ab3c0740c282e2","user":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"repo":{"id":27193779,"name":"node","full_name":"nodejs/node","owner":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodejs/node","description":"Future Node.js releases will be from this repo.","fork":false,"url":"https://api.github.com/repos/nodejs/node","forks_url":"https://api.github.com/repos/nodejs/node/forks","keys_url":"https://api.github.com/repos/nodejs/node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodejs/node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodejs/node/teams","hooks_url":"https://api.github.com/repos/nodejs/node/hooks","issue_events_url":"https://api.github.com/repos/nodejs/node/issues/events{/number}","events_url":"https://api.github.com/repos/nodejs/node/events","assignees_url":"https://api.github.com/repos/nodejs/node/assignees{/user}","branches_url":"https://api.github.com/repos/nodejs/node/branches{/branch}","tags_url":"https://api.github.com/repos/nodejs/node/tags","blobs_url":"https://api.github.com/repos/nodejs/node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodejs/node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodejs/node/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodejs/node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodejs/node/statuses/{sha}","languages_url":"https://api.github.com/repos/nodejs/node/languages","stargazers_url":"https://api.github.com/repos/nodejs/node/stargazers","contributors_url":"https://api.github.com/repos/nodejs/node/contributors","subscribers_url":"https://api.github.com/repos/nodejs/node/subscribers","subscription_url":"https://api.github.com/repos/nodejs/node/subscription","commits_url":"https://api.github.com/repos/nodejs/node/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodejs/node/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodejs/node/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodejs/node/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodejs/node/contents/{+path}","compare_url":"https://api.github.com/repos/nodejs/node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodejs/node/merges","archive_url":"https://api.github.com/repos/nodejs/node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodejs/node/downloads","issues_url":"https://api.github.com/repos/nodejs/node/issues{/number}","pulls_url":"https://api.github.com/repos/nodejs/node/pulls{/number}","milestones_url":"https://api.github.com/repos/nodejs/node/milestones{/number}","notifications_url":"https://api.github.com/repos/nodejs/node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodejs/node/labels{/name}","releases_url":"https://api.github.com/repos/nodejs/node/releases{/id}","created_at":"2014-11-26T19:57:11Z","updated_at":"2015-08-18T02:00:37Z","pushed_at":"2015-08-18T01:52:16Z","git_url":"git://github.com/nodejs/node.git","ssh_url":"git@github.com:nodejs/node.git","clone_url":"https://github.com/nodejs/node.git","svn_url":"https://github.com/nodejs/node","homepage":"https://iojs.org","size":193436,"stargazers_count":13429,"watchers_count":13429,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1093,"mirror_url":null,"open_issues_count":327,"forks":1093,"open_issues":327,"watchers":13429,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodejs/node/pulls/2401"},"html":{"href":"https://github.com/nodejs/node/pull/2401"},"issue":{"href":"https://api.github.com/repos/nodejs/node/issues/2401"},"comments":{"href":"https://api.github.com/repos/nodejs/node/issues/2401/comments"},"review_comments":{"href":"https://api.github.com/repos/nodejs/node/pulls/2401/comments"},"review_comment":{"href":"https://api.github.com/repos/nodejs/node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodejs/node/pulls/2401/commits"},"statuses":{"href":"https://api.github.com/repos/nodejs/node/statuses/3c639a4ad28ff946c47d1951fb59b4df7db578d8"}}}}