X
Merge remote-tracking branch 'upstream/v0.12'
Merge remote-tracking branch 'upstream/v0.10' into v0.12
Conflicts: ChangeLog Makefile deps/uv/ChangeLog deps/uv/build.mk deps/uv/src/unix/darwin.c deps/uv/src/unix/getaddrinfo.c deps/uv/src/version.c deps/v8/src/checks.h deps/v8/src/isolate.h lib/cluster.js...
tests: fix child-process-fork-dgram on SmartOS.
Send messages until both the parent and the child process have receivedat least one message. If at least one of them doesn't receive anymessage, the test runner will make the test timeout.
Fixes #8046.
node: Now working on v0.13.0
doc: document arguments for 'error' event on a stream
Fixes #6361.
fs: fix fs.readFileSync fd leak when get RangeError
src: handle UV_EAGAIN in TryWrite
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Cluster: fix shared handles on Windows
This is the Node side of the fix for Node's cluster module on Windows.https://github.com/joyent/node/issues/7691
The other required part ishttps://github.com/joyent/libuv/pull/1384
Windows and Unix return certain socket errors (i.e. EADDRINUSE) at...
deps: update libuv to v0.11.28
deps: update openssl to v1.0.1i
doc: clarify factory methods for net.Socket
fs: fs.readFile should not throw uncaughtException
dns: fix GetAddrInfo assert
The method GetAddrInfo() is used by more than just dns.lookup(), and inthose cases a third argument isn't passed. This caused the followingcheck to abort:
assert(args[3]->IsInt32());
Fixes: 4306786 "net: don't prefer IPv4 addresses during resolution"...
net: don't prefer IPv4 addresses during resolution
Currently the address resolution family defaults to IPv4. Instead removethe preference and instead resolve to a family suitable for the host.
Expose the getaddrinfo flags and allow them to be passed.
Add documentation about new flags....
v8: Fix compliation with GCC 4.8
Supresses a very loud warning from GCC 4.8 about unused typedefs
Original url https://codereview.chromium.org/69413002
test: fix test-net-remote-address-port
Do not use first socket in second socket's connect handler. Probably acopy/paste mistake.
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
path: isAbsolute() should always return boolean
On Windows, path.isAbsolute() returns an empty string on failed cases.This forces the return value to always be boolean.
timers: fix timers with non-integer delay hanging.
When backporting f8193ab into v0.10, a regression was introduced. Timerswith non-integer timeout could trigger a infinite recursion with 100%cpu usage. This commit backports 93b0624 which fixes the regression....
process: improve process binding
test: disable 0-dgram tests on darwin
fix #8023
cluster: disconnect should not be synchronous
Callbacks in node are usually asynchronous, and should never besometimes synchronous, and sometimes asynchronous.
path: fix slice OOB in trim
Internal function trim(arr). 2nd parameter of slice() should be slice'send index (not included). Because of function normalize() (called beforetrim()), "start" is always zero so the bug for now has no effect, butits a bug waiting to happen....
test: assert cluster.disconnect is async
See joyent/node#8043, test passed on v0.11 already, but this makes thetest stronger.
stream: fix Readable.wrap objectMode falsy values
A streams1 stream will have its falsy values such as 0, false, or "" eaten by the upgrade to streams2, even when objectMode is enabled.
Include test for said cases.
Reviewed-by: isaacs <i@izs.me>Reviewed-by: Trevor Norris <trev.norris@gmail.com>
tls: throw an error, not string
cluster: support options in Worker constructor
This commit moves some common Worker code into the constructorvia support for an options argument.
docs: fix non-string ignore note in path.resolve
Add fast path for simple URL parsing
This patch adds a fast path for parsing of simple path-only URLs, as commonlyfound in HTTP requests received by a server.
Benchmark results [ms], before / after patch:/foo/bar 0.008956 0.000418 (fast path used)...
Now working on 0.10.31
Merge branch 'v0.10.30-release' into v0.10
2014.07.31, Version 0.10.30 (Stable)
uv: Upgrade to v0.10.28
v8: Interrupts must not mask stack overflow.
Backport of https://codereview.chromium.org/339883002
npm: Upgrade to v1.4.21
module: eliminate double `getenv()`
`process.env` access results in a synchronous `getenv` call. Cache thefirst result instead and save one syscall.
streams: remove unused require('assert')
timers: backport f8193ab
Original commit message:
timers: use uv_now instead of Date.now
This saves a few calls to gettimeofday which can be expensive, and potentially subject to clock drift. Instead use the loop time which uses hrtime internally....
Revert "Cluster: fix shared handles on Windows"
This reverts commit 4e68a28e20b348f3519b359a17fcb941b235202b.
repl: proper `setPrompt()` and `multiline` support
fix #8031
Revert "repl: fix overwrite for this._prompt"
This reverts commit 7166b55015261de8ab69758320f3d9159b3eaadd.
cluster: test events emit on cluster.worker
v0.10 and node docs specific that in a worker, the 'message' and 'error'event emits on process, and on cluster.worker.
gyp: do not rm unused openssl syms on osx/linux
fix #8026
tests: fix internet/test-dns.js
internet/test-dns.js assumes that ::1 always resolves to "localhost" onall platforms. This is not what happens in reality. Some platformsresolve it to "ip6-localhost" too. There doesn't seem to be any consensuson what's the right thing to do. However, most sane platforms will use...
repl: fix overwrite for this._prompt
Signed-off-by: Fedor Indutny <fedor@indutny.com>
Merge remote-tracking branch 'origin/v0.10' into master
Conflicts: doc/api/buffer.markdown lib/_stream_readable.js lib/assert.js lib/buffer.js lib/child_process.js lib/http.js lib/string_decoder.js lib/zlib.js node.gyp test/simple/test-buffer.js...
buffer: fix sign overflow in `readUIn32BE`
`|` operation takes precendence on `+`, which will result in`new Buffer('ffffffff', 16).readUInt32BE(0)` returning `-1` instead of`ffffffff`.
tests: fix process.kill pid test.
Prevent test-process-kill-pid.js tests suite from sending SIGHUPto its process group, which was causing the test runner to terminate.
Fix jenkins' jobs for nodejs-master.
Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
cluster: enable error/message events using .worker
Between 0.11.1 and 0.11.2, the message and error events stoppedbeing usable via the cluster.worker object. This commit makesthem usable again. Closes #7998.
1 2 3 ... 203 Next » (1-50/10129) Per page: 25, 50, 100
Also available in: Atom