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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 2c6b424829ca
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 77d1f4a91f28
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 17, 2014

  1. tls: set _connecting before starting the flow

    When creating a TLSSocket instance based on the existing connecting
    socket, `_connecting` property is copied after the initialization of
    `net.Socket`. However, since `net.Socket` constructor will call
    `.read(0)` if the `readable` is true - error may happen at this code
    chunk in net.js:
    
        Socket.prototype._read = function(n) {
          debug('_read');
    
          if (this._connecting || !this._handle) {
            debug('_read wait for connection');
            this.once('connect', this._read.bind(this, n));
        ...
    
    Leading to a test failures on windows:
    
     - test/simple/test-tls-connect-given-socket.js
    
    Signed-off-by: Fedor Indutny <fedor@indutny.com>
    indutny committed Apr 17, 2014
    Copy the full SHA
    77d1f4a View commit details
    Browse the repository at this point in the history