Calling resume() on a net connection for which the IP address is still being resolved crashes node with an assertion error inside libuv. Calling pause() before the socket is connected doesn't crash, but it doesn't work either. This patch fixes it. Ref: #3118
* npm: Upgrade to 1.1.37 (isaacs) * benchmark: Backport improvements made in master (isaacs) * build: always link with -lz (Trent Mick) * core: use proper #include directives (Ben Noordhuis) * cluster: don't silently drop messages when the write queue gets big (Bert Belder) * windows: don't print error when GetConsoleTitleW returns an empty string (Bert Belder)
Fix building with a shared zlib: ensure link with '-lz'. Configuring for a shared zlib: LDFLAGS="-L/opt/local/lib -R/opt/local/lib" \ ./configure --shared-zlib \ --shared-zlib-includes=/opt/local/include \ --shared-zlib-libpath=/opt/local/lib and building would fail on SmartOS because the link would not include '-lz'. This doesn't fail on Mac (at least in my setup) because you get lucky with the openssl libs reported from the Homebrew pkg-config: $ pkg-config --libs openssl -lssl -lcrypto -lz On SmartOS, the pkgsrc libs for openssl are: $ pkg-config --libs openssl -Wl,-R/opt/local/lib -L/opt/local/lib -lssl -lcrypto -lsocket -lnsl -ldl The patch has no adverse effect on the Mac build (by control case).
* npm: upgrade to 1.1.24 * fs: no end emit after createReadStream.pause() (Andreas Madsen) * vm: cleanup module memory leakage (Marcel Laverdet) * unix: fix loop starvation under high network load (Ben Noordhuis) * unix: remove abort() in ev_unref() (Ben Noordhuis) * windows/tty: never report error after forcibly aborting line-buffered read (Bert Belder) * windows: skip GetFileAttributes call when opening a file (Bert Belder)
In case a fd option is given to fs.createReadStream a read will instantly happen. But in the edge case where fd point to an empty file and .pause() was executed instantly, the end event would emit since no async wait was between fs.createReadStream and the file read there emits end. This is a cherry-pick of commit 1f3e4a7 into the v0.6 branch.
* windows: skip GetFileAttributes call when opening a file (Bert Belder) * crypto: add PKCS12/PFX support (Sambasiva Suda) * #3240: child_process: delete NODE_CHANNEL_FD from env in spawn (Ben Noordhuis) * windows: add test for path.normalize with UNC paths (Bert Belder) * windows: make path.normalize convert all slashes to backslashes (Bert Belder) * fs: Automatically close FSWatcher on error (Bert Belder) * #3258: fs.ReadStream.pause() emits duplicate data event (koichik) * pipe_wrap: don't assert() on pipe accept errors (Ben Noordhuis) * Better exception output for module load and process.nextTick (Felix Geisendörfer) * zlib: fix error reporting (Ben Noordhuis) * http: Don't destroy on timeout (isaacs) * #3231: http: Don't try to emit error on a null'ed req object (isaacs) * #3236: http: Refactor ClientRequest.onSocket (isaacs)