Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

tls: errors no longer emitted on cleartext objects in 0.12 #14475

Closed
mscdex opened this issue Apr 5, 2015 · 1 comment
Closed

tls: errors no longer emitted on cleartext objects in 0.12 #14475

mscdex opened this issue Apr 5, 2015 · 1 comment

Comments

@mscdex
Copy link

mscdex commented Apr 5, 2015

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.

To reproduce:

var tls = require('tls'),
    net = require('net');

var sock = new net.Socket();
var clear = tls.connect({ socket: sock });

clear.on('error', function(err) {
  console.log('clear err: ' + err);
});

sock.connect(9993, 'localhost');
@misterdjules
Copy link

Fixed in io.js by nodejs/node#1046, however that fix depends on StreamWrap and possibly other changes that have not landed in node.js.

@misterdjules misterdjules added this to the 0.12.4 milestone Apr 7, 2015
@misterdjules misterdjules modified the milestones: 0.12.4, 0.12.5 May 25, 2015
@misterdjules misterdjules modified the milestones: 0.12.5, 0.12.6 Jun 22, 2015
@misterdjules misterdjules modified the milestones: 0.12.6, 0.12.7, 0.12.8 Jul 6, 2015
@Trott Trott closed this as completed Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants