summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* test: debug-signal-cluster increase timeoutsmove-debugger-testsAlexis Campailla2014-01-131-2/+2
| | | | | The test needs a little more time to run so that it passes for all builds (eg: Windows, debug)
* debug client: connect after child is readyAlexis Campailla2014-01-132-10/+12
| | | | | | | | | | | | | We now wait to connect to the debuggee until we know that its error stream has data, to ensure that the output message "connecting..... ok" appears after "Debugger listening on port xyz" I also increased the test timeout to let the more complex tests finish in time on Windows This change fixes the following unit tests on Windows: test-debugger-repl.js test-debugger-repl-term.js test-debugger-repl-utf8.js test-debugger-repl-restart.js
* test: move debugger repl into own sectionTimothy J Fontaine2014-01-1312-2/+18
|
* test: refactor to use common testcfgTimothy J Fontaine2014-01-135-519/+152
|
* test: terminate gracefully in cluster-net-sendAlexis Campailla2014-01-131-0/+3
| | | | | Killing the worker without ensuring the socket was closed was causing intermittent ECONNRESET errors.
* Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2014-01-131-1/+3
|\
| * doc: streams must be open to be passed to childSam Roberts2014-01-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | spawn stdio options can be a 'stream', but the following code fails with "Incorrect value for stdio stream: [object Object]", despite being a stream. The problem is the test isn't really for a stream, its for an object with a numeric `.fd` property, and streams do not have an fd until their async 'open' event has occurred. This is reasonable, but was not documented. child_process.spawn('date', [], {stdio: [ 'ignore', fs.createWriteStream('out.txt',{flags:'a'}), 'ignore']})
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2014-01-13223-444/+749
|\ \ | |/ | | | | | | | | | | | | | | | | | | Conflicts: deps/uv/ChangeLog deps/uv/build.mk deps/uv/src/version.c deps/uv/test/test-ipc.c deps/v8/src/objects.cc src/node.cc src/node_os.cc
| * test: close debug client in test-debugger-clientAlexis Campailla2014-01-131-3/+8
| | | | | | | | | | Killing the debuggee without first closing the socket can result in an ECONNRESET error.
| * src: return empty set on ENOSYS for interfacesTimothy J Fontaine2014-01-121-2/+5
| | | | | | | | | | | | | | If node was compiled with --no-ifaddrs to support older operating systems, don't throw instead simply return an empty object Fixes #6846
| * v8: backport codereview.chromium.org/11362182svenpanne@chromium.org2014-01-101-1/+3
| | | | | | | | | | | | | | Keep the number of descriptors below DescriptorArray::kMaxNumberOfDescriptors even for accessors Review URL: https://codereview.chromium.org/11362182
| * doc: Fix argument typo in SimpleProtocol examplegluxon2014-01-101-1/+1
| |
| * src: OnFatalError handler must abort()Timothy J Fontaine2014-01-092-1/+40
| | | | | | | | | | | | | | We are in an unrecoverable state if v8 throws a FatalError, actually ask the operating system to dump core in this case. Fixes #6836
| * doc: fix typo in cluster pageLorenz Leutgeb2014-01-081-1/+1
| |
| * uv: Upgrade to v0.10.22Timothy J Fontaine2014-01-0711-6/+115
| |
| * npm: Upgrade to 1.3.23isaacs2014-01-06215-432/+618
| |
| * stream: writes may return false but forget to emit drainayanamist2014-01-052-1/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If a write is above the highWaterMark, _write still manages to fully send it synchronously, _writableState.length will be adjusted down to 0 synchronously with the write returning false, but 'drain' will not be emitted until process.nextTick. If another small write which is below highWaterMark is issued before process.nextTick happens, _writableState.needDrain will be reset to false, and the drain event will never be fired. So we should check needDrain before setting it up, which prevents it from inproperly resetting to false.
* | http: concatenate duplicate headers by defaultAlex Kocharin2014-01-132-29/+129
| |
* | util: handle escaped forward slashes correctlyTom Gallacher2014-01-102-1/+17
| | | | | | | | Fixes #6835
* | domain: fix off-by-one in Domain.exit()Ryan Graham2014-01-092-1/+60
| | | | | | | | | | | | We want to clear the found domain and the domains after it. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* | http: use writev on chunked encodingTrevor Norris2014-01-091-3/+7
| | | | | | | | | | Now will process all write() that were done on a single tick in a single writev().
* | test: check RR scheduler has necessary methodsJeff Barczewski2014-01-091-0/+51
| | | | | | | | | | | | | | | | | | | | | | The RR cluster scheduler replaces the normal StreamWrap handle. Because of this the AsyncListener method failed to be in place when domains were in use. The issue was resolved in 828f145 by reverting having domains use AsyncListeners. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* | node: AsyncListener use separate storage mechanismTrevor Norris2014-01-096-161/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before when an AsyncListener object was created and the "create" callback returned a value, it was necessary to construct a new Object with the same callbacks but add a place for the new storage value. Now, instead, a separate storage array is kept on the context which is used for any return value of the "create" callback. This significantly reduces the number of Objects that need to be created. Also added a flags property to the context to quickly check if a specific callback was available either on the context or on the AsyncListener instance itself. Few other minor changes for readability that were difficult to separate into their own commit. This has not been optimized yet.
* | src: revert domain using AsyncListenersTrevor Norris2014-01-0913-107/+468
| | | | | | | | | | | | | | | | This is a slightly modified revert of bc39bdd. Getting domains to use AsyncListeners became too much of a challenge with many edge cases. While this is still a goal, it will have to be deferred for now until more test coverage can be provided.
* | configure: always set `arm_float_abi`Fedor Indutny2014-01-091-1/+1
| | | | | | | | | | | | | | When not specified as a configure flag, and not derived from system configuration, `arm_float_abi` should be set to `'default'`. fix #6789
* | child_process: better error reporting for execFedor Indutny2014-01-092-5/+15
| | | | | | | | | | | | | | Report path to executable and argv on error, stderr is not enough in many cases. fix #6796
* | deps: fix openssl assembly error on ia32 win32Fedor Indutny2014-01-0815-15/+15
| | | | | | | | | | `x86masm.pl` was mistakenly using .486 instruction set, why `cpuid` (and perhaps others) are requiring .686 .
* | deps: update openssl to 1.0.1fFedor Indutny2014-01-08135-1543/+2024
| |
* | build: unconditionally disable -WerrorBen Noordhuis2014-01-072-3/+4
| | | | | | | | | | | | | | | | | | | | | | Forcibly disable -Werror, the old { 'werror': '' } hack in node.gyp no longer works with newer versions of V8. We support a wide range of compilers, it's simply not feasible to squelch all warnings, never mind that the libraries in deps/ are not under our control. Fixes #6817.
* | doc: Add forward secrecy section to TLS docsLorenz Leutgeb2014-01-051-9/+30
| | | | | | | | | | This fixes confusion connected to comparison of ECDH with RSA and wrong information on forward secrecy.
* | crypto: introduce .setEngine(engine, [flags])Fedor Indutny2014-01-056-2/+168
| |
* | node: properly check uid when adding AsyncListenerTrevor Norris2014-01-032-1/+53
| | | | | | | | | | | | | | Instead of checking the uid on the array index of the queue, instead the object property "uid" was checked on the queue iteself. Because this will always evaluate to "undefined" the same listener could be added multiple times to the same context.
* | node: change AsyncListener APITrevor Norris2014-01-0322-142/+137
| | | | | | | | | | | | There was a flaw in the old API that has been fixed. Now the asyncListener callback is now the "create" object property in the callback object, and is optional.
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2013-12-311-0/+106
|\ \ | |/
| * blog: Post for v0.11.10Timothy J Fontaine2013-12-311-0/+106
| |
* | Now working on 0.11.11Timothy J Fontaine2013-12-311-2/+2
| |
* | Merge branch 'v0.11.10-release'Timothy J Fontaine2013-12-313-1/+62
|\ \
| * | 2013.12.31, Version 0.11.10 (Unstable)v0.11.10v0.11.10-releaseTimothy J Fontaine2013-12-313-1/+62
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * http_parser: update to 2.2 * uv: Upgrade to v0.11.17 * v8: Upgrade to 3.22.24.10 * buffer: optimize writeInt* methods (Paul Loyd) * child_process: better error handling (Alexis Campailla) * cluster: do not synchronously emit 'setup' event (Sam Roberts) * cluster: restore backwards compatibility and various fixes (Sam Roberts) * crypto: remove unnecessary OpenSSL_add_all_digests (Yorkie) * crypto: support GCM authenticated encryption mode. (Ingmar Runge) * dns: add resolveSoa and 'SOA' rrtype (Tuğrul Topuz) * events: move EE c'tor guts to EventEmitter.init (Bert Belder) * http: DELETE shouldn't default to chunked encoding (Lalit Kapoor) * http: parse the status message in a http response. (Cam Swords) * node: fix removing AsyncListener in callback (Vladimir Kurchatkin) * node: follow specification, zero-fill ArrayBuffers (Trevor Norris) * openssl: use ASM optimized routines (Fedor Indutny) * process: allow nextTick infinite recursion (Trevor Norris) * querystring: remove `name` from `stringify()` (Yorkie) * timers: setImmediate v8 optimization fix (pflannery) * tls: add serialNumber to getPeerCertificate() (Ben Noordhuis) * tls: reintroduce socket.encrypted (Fedor Indutny) * tls: fix handling of asterisk in SNI context (Fedor Indutny) * util: Format negative zero as '-0' (David Chan) * vm: fix race condition in timeout (Alexis Campailla) * windows: fix dns lookup of localhost with ipv6 (Alexis Campailla)
* | v8: Upgrade to 3.22.24.10Timothy J Fontaine2013-12-312-1/+2
| |
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2013-12-312-6/+14
|\ \ | |/
| * doc: document that `process.send` is synchronousMaciej Małecki2013-12-311-0/+5
| | | | | | | | Ref #2598
| * doc: clarify process on exit safe usageTimothy J Fontaine2013-12-311-5/+7
| |
| * docs: process.on('exit') receives exit codeRon Korving2013-12-311-3/+4
| | | | | | | | | | | | The fact that the "exit" event passes the exit code as an argument as omitted from the documentation. This adds the explanation and augments the example code to show that.
* | dns: add resolveSoa and 'SOA' rrtypeTuğrul Topuz2013-12-314-4/+121
| | | | | | | | | | You can now query for SOA records by either passing 'SOA' to `resolve` or by using the new `resolveSoa`
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2013-12-311-0/+62
|\ \ | |/ | | | | | | | | | | Conflicts: lib/cluster.js lib/dgram.js lib/net.js
| * test: fix test-cluster-eaccess to work on windowsTimothy J Fontaine2013-12-311-16/+19
| |
| * cluster: report more errors to workersFedor Indutny2013-12-314-9/+83
| | | | | | | | | | | | | | Some errors for listening and binding to a socket were not properly delivered to workers. fix #6767
* | test: fix assumption of worker exit on disconnectSam Roberts2013-12-313-3/+10
| | | | | | | | | | | | | | | | | | | | | | Master was disconnecting its workers as soon as they both started up. Meanwhile, the workers were trying to listen. Its a race, sometimes the disconnect would happen between when worker gets the response message, and acks that message with a 'listening'. This worked OK after v0.11 introduced a behaviour where disconnect would always exit the worker, but once that backwards-incompatible behaviour is removed, the worker lives long enough to try and respond to the master, and child_process errors at the attempt to send from a disconnected child.
* | cluster: do not synchronously emit 'setup' eventSam Roberts2013-12-312-7/+9
| | | | | | | | | | | | This is a problem present in both v0.10, and v0.11, where the 'setup' event is synchronously emitted by `cluster.setupMaster()`, a mostly harmless anti-pattern.
* | cluster: only forcibly exit worker on unclean exitSam Roberts2013-12-314-5/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix inadvertent v0.11 changes to the definition of suicide, particularly the relationship between suicide state, the disconnect event, and when exit should occur. In v0.10, workers don't forcibly exit on disconnect, it doesn't give them time to do a graceful finish of open client connections, they exit under normal node rules - when there is nothing left to do. But on unexpected disconnect they do exit so the workers aren't left around after the master. Note that a test as-written was invalid, it failed against the v0.10 cluster API, demonstrating that it was an undocumented API change.