{"action":"created","issue":{"url":"https://api.github.com/repos/joyent/node/issues/9348","labels_url":"https://api.github.com/repos/joyent/node/issues/9348/labels{/name}","comments_url":"https://api.github.com/repos/joyent/node/issues/9348/comments","events_url":"https://api.github.com/repos/joyent/node/issues/9348/events","html_url":"https://github.com/joyent/node/issues/9348","id":60105738,"number":9348,"title":"HTTPS connection failing because socket has been deleted","user":{"login":"othiym23","id":418097,"avatar_url":"https://avatars.githubusercontent.com/u/418097?v=3","gravatar_id":"","url":"https://api.github.com/users/othiym23","html_url":"https://github.com/othiym23","followers_url":"https://api.github.com/users/othiym23/followers","following_url":"https://api.github.com/users/othiym23/following{/other_user}","gists_url":"https://api.github.com/users/othiym23/gists{/gist_id}","starred_url":"https://api.github.com/users/othiym23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/othiym23/subscriptions","organizations_url":"https://api.github.com/users/othiym23/orgs","repos_url":"https://api.github.com/users/othiym23/repos","events_url":"https://api.github.com/users/othiym23/events{/privacy}","received_events_url":"https://api.github.com/users/othiym23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-06T14:08:25Z","updated_at":"2015-03-06T15:01:12Z","closed_at":null,"body":"Here are two stacktraces that I have collected within the last few hours from two separate npm users. This failure has been seen on all of OS X, Windows, and Linux.:\r\n\r\n```\r\n104310 verbose stack AssertionError: null == true\r\n104310 verbose stack     at TLSSocket.socketOnData (_http_client.js:308:3)\r\n104310 verbose stack     at TLSSocket.emit (events.js:107:17)\r\n104310 verbose stack     at TLSSocket.Readable.read (_stream_readable.js:373:10)\r\n104310 verbose stack     at TLSSocket.socketCloseListener (_http_client.js:229:10)\r\n104310 verbose stack     at TLSSocket.emit (events.js:129:20)\r\n104310 verbose stack     at TCP.close (net.js:476:12)\r\n```\r\n\r\n```\r\n102672 verbose stack AssertionError: null == true\r\n102672 verbose stack     at TLSSocket.socketOnData (_http_client.js:308:3)\r\n102672 verbose stack     at TLSSocket.emit (events.js:107:17)\r\n102672 verbose stack     at TLSSocket.Readable.read (_stream_readable.js:373:10)\r\n102672 verbose stack     at TLSSocket.socketCloseListener (_http_client.js:229:10)\r\n102672 verbose stack     at TLSSocket.emit (events.js:129:20)\r\n102672 verbose stack     at TCP.close (net.js:476:12)\r\n```\r\n\r\nSee also npm/npm#7349 for more discussion and further links to people encountering this issue, which ultimately traces back to this [bare assert](https://github.com/joyent/node/blob/v0.12.0-release/lib/_http_client.js#L308) in `_http_client.js`. It's rare enough that it's probably a race condition, and I seem to recall a similar issue getting fixed elsewhere in the not too distant pass. @indutny? Anybody?"},"comment":{"url":"https://api.github.com/repos/joyent/node/issues/comments/77572175","html_url":"https://github.com/joyent/node/issues/9348#issuecomment-77572175","issue_url":"https://api.github.com/repos/joyent/node/issues/9348","id":77572175,"user":{"login":"indutny","id":238531,"avatar_url":"https://avatars.githubusercontent.com/u/238531?v=3","gravatar_id":"","url":"https://api.github.com/users/indutny","html_url":"https://github.com/indutny","followers_url":"https://api.github.com/users/indutny/followers","following_url":"https://api.github.com/users/indutny/following{/other_user}","gists_url":"https://api.github.com/users/indutny/gists{/gist_id}","starred_url":"https://api.github.com/users/indutny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indutny/subscriptions","organizations_url":"https://api.github.com/users/indutny/orgs","repos_url":"https://api.github.com/users/indutny/repos","events_url":"https://api.github.com/users/indutny/events{/privacy}","received_events_url":"https://api.github.com/users/indutny/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T15:01:12Z","updated_at":"2015-03-06T15:01:12Z","body":"Well, if the `error` event happens - socket will be destroyed immediately. Anyway, do you know any way to reproduce it? Even some script that does it in like 10000 runs would suffice."}}