{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6103","repository_url":"https://api.github.com/repos/rethinkdb/rethinkdb","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6103/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6103/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6103/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/6103","id":176456505,"number":6103,"title":"Connection authentication error is followed by uncaught timeout error","user":{"login":"kvnvelasco","id":6581079,"avatar_url":"https://avatars.githubusercontent.com/u/6581079?v=3","gravatar_id":"","url":"https://api.github.com/users/kvnvelasco","html_url":"https://github.com/kvnvelasco","followers_url":"https://api.github.com/users/kvnvelasco/followers","following_url":"https://api.github.com/users/kvnvelasco/following{/other_user}","gists_url":"https://api.github.com/users/kvnvelasco/gists{/gist_id}","starred_url":"https://api.github.com/users/kvnvelasco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvnvelasco/subscriptions","organizations_url":"https://api.github.com/users/kvnvelasco/orgs","repos_url":"https://api.github.com/users/kvnvelasco/repos","events_url":"https://api.github.com/users/kvnvelasco/events{/privacy}","received_events_url":"https://api.github.com/users/kvnvelasco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-12T19:01:04Z","updated_at":"2016-09-12T20:55:12Z","closed_at":null,"body":"I'm not entirely too familiar with coffeescript but \r\n\r\n```\r\n        # If any other kind of error occurs, we also want to cancel\r\n        # the timeout error callback. Otherwise a connection error\r\n        # would be followed shortly by a spurious timeout error.\r\n        @rawSocket.once 'error', => clearTimeout(timeout)\r\n```\r\nComes out to be \r\n\r\n```\r\n    this.rawSocket.once('error', (function(_this) {\r\n      return function() {\r\n        return clearTimeout(timeout);\r\n      };\r\n    })(this));\r\n```\r\ncorrects the issue\r\n\r\n```\r\n    this.once('error', (function(_this) {\r\n      return function() {\r\n        return clearTimeout(timeout);\r\n      };\r\n    })(this));\r\n```\r\n\r\nI'm pretty new to JS dev, so.. I could be missing something.\r\n"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/246490034","html_url":"https://github.com/rethinkdb/rethinkdb/issues/6103#issuecomment-246490034","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/6103","id":246490034,"user":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T20:55:12Z","updated_at":"2016-09-12T20:55:12Z","body":"I'm not sure which version is correct. @deontologician do you understand why this code is the way it is?"}}
{"actor":{"display_login":"danielmewes"}}