Revision 164d5b34 lib/tls.js

View differences:

lib/tls.js
1322 1322
  pair.encrypted.pipe(socket);
1323 1323
  socket.pipe(pair.encrypted);
1324 1324

  
1325
  pair.encrypted.on('close', function() {
1326
    process.nextTick(function() {
1327
      socket.destroy();
1328
    });
1329
  });
1330

  
1325 1331
  pair.fd = socket.fd;
1326 1332
  var cleartext = pair.cleartext;
1327 1333
  cleartext.socket = socket;

Also available in: Unified diff