{"action":"created","issue":{"url":"https://api.github.com/repos/joyent/node/issues/14475","labels_url":"https://api.github.com/repos/joyent/node/issues/14475/labels{/name}","comments_url":"https://api.github.com/repos/joyent/node/issues/14475/comments","events_url":"https://api.github.com/repos/joyent/node/issues/14475/events","html_url":"https://github.com/joyent/node/issues/14475","id":66442997,"number":14475,"title":"tls: errors no longer emitted on cleartext objects in 0.12","user":{"login":"mscdex","id":54666,"avatar_url":"https://avatars.githubusercontent.com/u/54666?v=3","gravatar_id":"","url":"https://api.github.com/users/mscdex","html_url":"https://github.com/mscdex","followers_url":"https://api.github.com/users/mscdex/followers","following_url":"https://api.github.com/users/mscdex/following{/other_user}","gists_url":"https://api.github.com/users/mscdex/gists{/gist_id}","starred_url":"https://api.github.com/users/mscdex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscdex/subscriptions","organizations_url":"https://api.github.com/users/mscdex/orgs","repos_url":"https://api.github.com/users/mscdex/repos","events_url":"https://api.github.com/users/mscdex/events{/privacy}","received_events_url":"https://api.github.com/users/mscdex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joyent/node/labels/confirmed-bug","name":"confirmed-bug","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-05T14:23:48Z","updated_at":"2015-04-07T00:11:34Z","closed_at":null,"body":"This is a regression since at least node v0.10. Latest io.js behaves like v0.10 in this regard, so it would be nice to see a fix for this in v0.12.\r\n\r\nTo reproduce:\r\n\r\n```javascript\r\nvar tls = require('tls'),\r\n    net = require('net');\r\n\r\nvar sock = new net.Socket();\r\nvar clear = tls.connect({ socket: sock });\r\n\r\nclear.on('error', function(err) {\r\n  console.log('clear err: ' + err);\r\n});\r\n\r\nsock.connect(9993, 'localhost');\r\n```"},"comment":{"url":"https://api.github.com/repos/joyent/node/issues/comments/90294251","html_url":"https://github.com/joyent/node/issues/14475#issuecomment-90294251","issue_url":"https://api.github.com/repos/joyent/node/issues/14475","id":90294251,"user":{"login":"misterdjules","id":811047,"avatar_url":"https://avatars.githubusercontent.com/u/811047?v=3","gravatar_id":"","url":"https://api.github.com/users/misterdjules","html_url":"https://github.com/misterdjules","followers_url":"https://api.github.com/users/misterdjules/followers","following_url":"https://api.github.com/users/misterdjules/following{/other_user}","gists_url":"https://api.github.com/users/misterdjules/gists{/gist_id}","starred_url":"https://api.github.com/users/misterdjules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterdjules/subscriptions","organizations_url":"https://api.github.com/users/misterdjules/orgs","repos_url":"https://api.github.com/users/misterdjules/repos","events_url":"https://api.github.com/users/misterdjules/events{/privacy}","received_events_url":"https://api.github.com/users/misterdjules/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T00:11:34Z","updated_at":"2015-04-07T00:11:34Z","body":"Fixed in io.js by https://github.com/iojs/io.js/pull/1046, however that fix depends on [StreamWrap](https://github.com/iojs/io.js/blob/v1.x/lib/_stream_wrap.js) and possibly other changes that have not landed in node.js."}}