Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-10-302013.10.30, Version 0.11.8 (Unstable)v0.11.8Timothy J Fontaine
* uv: Upgrade to v0.11.14 * v8: upgrade 3.21.18.3 * assert: indicate if exception message is generated (Glen Mailer) * buffer: add buf.toArrayBuffer() API (Trevor Norris) * cluster: fix premature 'disconnect' event (Ben Noordhuis) * crypto: add SPKAC support (Jason Gerfen) * debugger: count space for line numbers correctly (Alex Kocharin) * debugger: make busy loops SIGUSR1-interruptible (Ben Noordhuis) * debugger: repeat last command (Alex Kocharin) * debugger: show current line, fix for #6150 (Alex Kocharin) * dgram: send() can accept strings (Trevor Norris) * dns: rename domain to hostname (Ben Noordhuis) * dns: set hostname property on error object (Ben Noordhuis) * dtrace, mdb_v8: support more string, frame types (Dave Pacheco) * http: add statusMessage (Patrik Stutz) * http: expose supported methods (Ben Noordhuis) * http: provide backpressure for pipeline flood (isaacs) * process: Add exitCode property (isaacs) * tls: socket.renegotiate(options, callback) (Fedor Indutny) * util: format as Error if instanceof Error (Rod Vagg)
2013-10-30fs_event_wrap: update to new libuv apiTimothy J Fontaine
2013-10-30src: shorten Object{Wrap,Unwrap}Trevor Norris
Going back to the original names of Wrap/Unwrap now that most all the class members that duplicate the name and functionality have been removed.
2013-10-30src: don't use class specific Unwrap methodsTrevor Norris
Instead use the template functions in util.h.
2013-10-30src: don't use WeakObject::UnwrapTrevor Norris
Switch out to use UnwrapObject from util.h.
2013-10-30src: use function to get internal pointerTrevor Norris
Remove the NODE_{WRAP,UNWRAP} macros and instead use template functions.
2013-10-30node: don't share state with in_tick/last_threwTrevor Norris
There was no need to share state between C++ and JS for these two values. So they have been moved to their respective locations. This will help performance only a tiny bit, but it does help code complexity much more.
2013-10-30win: fix ObjectWrap for latest v8Scott Blomquist
We need to keep ObjectWrap around for module authors (we think), but v8 3.21 broke node_object_wrap.h with respect to MSVC. Coincidentally, we no longer use ObjectWrap at all in core, and native modules might as well use their own entirely internal implementation if they need it.
2013-10-29src: Remove unused refs to node_object_wrap.hScott Blomquist
Turns out that we don't use node_object_wrap.h any more in core, and, with v8 3.21, it's breaking our Windows build. Removing refs to it everywhere (and adding node.h in one case where it was the only way node.h was being included), we have restored the Windows build.
2013-10-29src: accept passphrase when crypto signing with private keyThom Seddon
Previous behaviour was to drop to an openssl prompt ("Enter PEM pass phrase:") when supplying a private key with a passphrase. This change adds a fourth, optional, paramter that will be used as the passphrase. To include this parameter in a backwards compatible way it was necessary to expose the previously undocumented (and unexposed) feature of being able to explitly setting the output encoding.
2013-10-28vm: Copy missing properties from contextisaacs
This addresses a current shortcoming of the V8 SetNamedPropertyHandler function. It does not provide a way to intercept Object.defineProperty(..) calls. As a result, these properties are not copied onto the contextified sandbox when a new global property is added via either a function declaration or a Object.defineProperty(global, ...) call. Note that any function declarations or Object.defineProperty() globals that are created asynchronously (in a setTimeout, callback, etc.) will happen AFTER the call to copy properties, and thus not be caught. The way to properly fix this is to add some sort of a Object::SetNamedDefinePropertyHandler() function that takes a callback, which receives the property name and property descriptor as arguments. Luckily, such situations are rare, and asynchronously-added globals weren't supported by Node's VM module until 0.12 anyway. But, this should be fixed properly in V8, and this copy function should be removed once there is a better way. Fix #6416
2013-10-28http: remove MethodToString()Ben Noordhuis
The list of supported HTTP methods is available in JS land now so there is no longer any need to pass a stringified version of the method to the parser callback, it can look up the method name for itself. Saves a call to v8::Eternal::Get() in the common case and a costly v8::String::NewFromOneByte() in the uncommon case.
2013-10-28http: expose supported methodsBen Noordhuis
Expose the list of supported HTTP methods as a property on the 'http' module object. Fixes #6422.
2013-10-25Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine
Conflicts: ChangeLog deps/uv/ChangeLog deps/uv/include/uv-darwin.h deps/uv/src/unix/fsevents.c deps/uv/src/unix/process.c deps/uv/src/version.c doc/api/addons.markdown doc/api/cluster.markdown doc/api/http.markdown lib/http.js lib/tls.js src/node_crypto.cc src/node_http_parser.cc src/node_version.h src/pipe_wrap.cc src/v8abbr.h src/v8ustack.d test/simple/test-http-pipeline-flood.js
2013-10-23src: update after v8 api changesBen Noordhuis
2013-10-23src: IsInt64() should return bool, not intBen Noordhuis
2013-10-19Now working on 0.10.22Timothy J Fontaine
2013-10-192013.10.18, Version 0.10.21 (Stable)v0.10.21Timothy J Fontaine
* uv: Upgrade to v0.10.18 * crypto: clear errors from verify failure (Timothy J Fontaine) * dtrace: interpret two byte strings (Dave Pacheco) * fs: fix fs.truncate() file content zeroing bug (Ben Noordhuis) * http: provide backpressure for pipeline flood (isaacs) * tls: fix premature connection termination (Ben Noordhuis)
2013-10-19crypto: clear errors from verify failureTimothy J Fontaine
OpenSSL will push errors onto the stack when a verify fails, which can disrupt TLS and other routines if we don't clear the error stack Fixes #6304
2013-10-17http_parser: expose pause/resume method for parserTimothy J Fontaine
2013-10-17cpplint: disallow if one-linersFedor Indutny
2013-10-17cpplint: disallow comma-first in C++Fedor Indutny
2013-10-16debugger: fix SIGUSR1 bootstrap race conditionBen Noordhuis
Before this commit, the SIGUSR1 signal handler wasn't installed until late in the bootstrapping process and we were prone to miss signals sent by other processes. This commit installs an early-boot signal handler that merely records the fact that we received a signal. Once the debugger infrastructure is in place, the signal is re-raised, kickstarting the debugger. Among other things, this means that simple/test-debugger-client is now _much_ less likely to fail.
2013-10-16debugger: make busy loops SIGUSR1-interruptibleBen Noordhuis
Commit 30e5366b ("core: Use a uv_signal for debug listener") changed SIGUSR1 handling from a signal handler to libuv's uv_signal_*() functionality to fix a race condition (and possible hang) in the signal handler. While a good change in itself, it made it impossible to interrupt long running scripts. When a script is stuck in a busy loop, control never returns to the event loop, which in turn means the signal callback - and therefore the debugger - is never invoked. This commit changes SIGUSR1 handling back to a normal signal handler but one that treads _very_ carefully.
2013-10-16http_parser: expose pause/resume method for parserTimothy J Fontaine
2013-10-16crypto: add SPKAC supportJason Gerfen
Implements new class 'Certificate' within crypto object for working with SPKAC's (signed public key & challenge) natively.
2013-10-16Revert "crypto: add SPKAC support"isaacs
This reverts commit 7f66e44dc1e90e7abda2a9ed02d7e8163e1f6358.
2013-10-13crypto: add SPKAC supportJason Gerfen
Implements new class 'Certificate' within crypto object for working with SPKAC's (signed public key & challenge) natively.
2013-10-14cares_wrap: remove superfluous 'this' keywordBen Noordhuis
2013-10-11lint: fix a cpplint errorTrevor Norris
Added a NOLINT so that cpplint won't complain about some code.
2013-10-11buffer: add buf.toArrayBuffer() APITrevor Norris
2013-10-11buffer: check data is not nullTrevor Norris
Because it's possible for the data within a Buffer instance to be altered after instantiation, or in case a user attempts to do something like the following: Buffer.prototype.fill.call({}, 10, 0, 10); It doesn't result in a segfault.
2013-10-09dtrace: backport two byte string fixDave Pacheco
This is a partial backport of 5921158 Re #6309 Closes #6319
2013-10-09dtrace, mdb_v8: support more string, frame typesDave Pacheco
This change makes several improvements to the ustack helper and MDB support: - ustack helper and MDB: add support for two-byte strings (necessary to print many filenames in stacktraces in 0.10 and later). - ustack helper: fix position numbers, which were off by a factor of two - ustack helper: fix frames with undefined Scripts (e.g., "RegExp") - ustack helper: add stub frames - MDB: add support for sliced strings - MDB: sync up with changes from the illumos version of the module Fixes #6309 Closes #6318
2013-10-08zlib: fix write request reference countingBen Noordhuis
Keep track of the reference count, don't make the wrapper object weak when there are pending write requests. Fixes a regression from c79d516.
2013-10-03src: fix up after botched merge conflictBen Noordhuis
Mea culpa, I didn't properly resolve a merge conflict in the last two commits. The resulting segmentation fault only happened on Linux and only sometimes. Fixes #6306.
2013-10-03src: add JS start/stop methods for idle notifierBen Noordhuis
The previous commit changes the profiler idle notifier so that it only gets started when a --prof or --prof_lazy argument is specified on the command line. This commit adds two internal methods to the process object that allows one to start and stop the idle notifier programmatically.
2013-10-03src: only start idle notifier when profilingBen Noordhuis
The previous commit adds a notifier that tells the V8 profiler when node.js is idle, i.e. when it's about to start sleeping in the platform's equivalent of epoll_wait(). This commit adds a heuristic that only starts the notifier when the V8 profiler is started from the command line.
2013-10-03src: notify V8 profiler when we're idleBen Noordhuis
Inform V8's CPU profiler when we're idle. The profiler is sampling-based but not all samples are created equal; mark the wall clock time spent in epoll_wait() and friends so profiling tools can filter it out. The samples still end up in v8.log but with state=IDLE rather than state=EXTERNAL.
2013-10-03src: raise maximum file descriptor limitBen Noordhuis
Do a binary search for the maximum RLIMIT_NOFILE. Works around the low, low limits on certain high, high-priced devices from Cupertino, CA.
2013-10-01Now working on 0.10.21Timothy J Fontaine
2013-10-012013.09.30, Version 0.10.20 (Stable)v0.10.20Timothy J Fontaine
* tls: fix sporadic hang and partial reads (Fedor Indutny) - fixes "npm ERR! cb() never called!"
2013-09-28src: turn uv_pipe_open() failures into exceptionsBen Noordhuis
uv_pipe_open() is unlikely to fail but when it does, the failure should not be quietly ignored. Raise the error as an exception. See joyent/libuv#941.
2013-09-25src: remove ObjectWrap dependency from coreBen Noordhuis
Drop the ObjectWrap dependency in favor of an internal WeakObject class. Let's us stop worrying about API and ABI compatibility when making changes to the way node.js deals with weakly persistent handles internally.
2013-09-25Now working on 0.10.20Timothy J Fontaine
2013-09-252013.09.24, Version 0.10.19 (Stable)v0.10.19Timothy J Fontaine
* uv: Upgrade to v0.10.17 * npm: upgrade to 1.3.11 * readline: handle input starting with control chars (Eric Schrock) * configure: add mips-float-abi (soft, hard) option (Andrei Sedoi) * stream: objectMode transforms allow falsey values (isaacs) * tls: prevent duplicate values returned from read (Nathan Rajlich) * tls: NPN protocols are now local to connections (Fedor Indutny)
2013-09-24tls: wrap tls inside tls using legacy APIFedor Indutny
Allow wrapping TLSSocket inside another TLSSocket, emulate it using SecurePair in legacy APIs. fix #6204
2013-09-23src: fix v8 PRNG entropy seedingBen Noordhuis
It was pointed out by a member of the V8 team that the call to V8::SetEntropySource() should come before V8::Initialize(). See also commit 7ac2391.
2013-09-21src: seed V8's random number generator at startupBen Noordhuis
The default entropy source is /dev/urandom on UNIX platforms, which is okay but we can do better by seeding it from OpenSSL's entropy pool. On Windows we can certainly do better; on that platform, V8 seeds the random number generator using only the current system time. Fixes #6250.
2013-09-20dns: fix c-ares error reporting regressionBen Noordhuis
The test case from the previous commit exposed a regression in the way that c-ares errors are reported to JS land. Said regression was introduced in commit 756b622 ("src: add multi-context support"). Fixes the following test failure: $ out/Release/node test/simple/test-dns-regress-6244 util.js:675 var errname = uv.errname(err); ^ Error: err >= 0 at Object.exports._errnoException (util.js:675:20) at errnoException (dns.js:43:15) at Object.onresolve [as oncomplete] (dns.js:145:19) lib/dns.js erroneously assumed that the error code was a libuv error code when it's really a c-ares status code. Libuv handles getaddrinfo() style lookups (which is by far the most common type of lookup), that's why this bug wasn't discovered earlier.