summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 2013.04.11, Version 0.10.4 (Stable)v0.10.4v0.10.4-releaseisaacs2013-04-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * uv: Upgrade to 0.10.4 * npm: Upgrade to 1.2.18 * v8: Avoid excessive memory growth in JSON.parse (Fedor Indutny) * child_process, cluster: fix O(n*m) scan of cmd string (Ben Noordhuis) * net: fix socket.bytesWritten Buffers support (Fedor Indutny) * buffer: fix offset checks (Łukasz Walukiewicz) * stream: call write cb before finish event (isaacs) * http: Support write(data, 'hex') (isaacs) * crypto: dh secret should be left-padded (Fedor Indutny) * process: expose NODE_MODULE_VERSION in process.versions (Rod Vagg) * crypto: fix constructor call in crypto streams (Andreas Madsen) * net: account for encoding in .byteLength (Fedor Indutny) * net: fix buffer iteration in bytesWritten (Fedor Indutny) * crypto: zero is not an error if writing 0 bytes (Fedor Indutny) * tls: Re-enable check of CN-ID in cert verification (Tobias Müllerleile)
* src: don't SetInternalField() in ObjectWrap dtorBen Noordhuis2013-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | Call SetPointerInInternalField(0, NULL) rather than SetInternalField(0, Undefined()). Fixes the following spurious NULL pointer dereference in debug builds: #0 0x03ad2821 in v8::internal::FixedArrayBase::length () #1 0x03ad1dfc in v8::internal::FixedArray::get () #2 0x03ae05dd in v8::internal::Context::global_object () #3 0x03b6b87d in v8::internal::Context::builtins () #4 0x03ae1871 in v8::internal::Isolate::js_builtins_object () #5 0x03ab4fab in v8::CallV8HeapFunction () #6 0x03ab4d4a in v8::Value::Equals () #7 0x03b4f38b in CheckEqualsHelper () #8 0x03ac0f4b in v8::Object::SetInternalField () #9 0x06a99ddd in node::ObjectWrap::~ObjectWrap () #10 0x06a8b051 in node::Buffer::~Buffer () #11 0x06a8afbb in node::Buffer::~Buffer () #12 0x06a8af5e in node::Buffer::~Buffer () #13 0x06a9e569 in node::ObjectWrap::WeakCallback ()
* Revert "crypto: use better memory BIO implementation"Ben Noordhuis2013-04-103-419/+4
| | | | | | | | | | This change shouldn't have landed in the stable branch. It's a feature, not a bug fix. This reverts commit 58f93ffc4a23aa7240808288acf8cf9f3022abea. This reverts commit 8c8ebe49b62c47b0ac87d697d0bc3515604667c3. This reverts commit ba0f7b8066cb4dc8cb3cd4931e52aa94af40a709. This reverts commit 21f3c5c3670861436392f30da2033cccbc137309.
* crypto: remove unused ClientHelloParser fieldBen Noordhuis2013-04-101-3/+1
|
* crypto: dh secret should be left-paddedFedor Indutny2013-04-081-1/+2
| | | | | | | DH_compute_secret() may return key that is smaller than input buffer, in such cases key should be left-padded because it is a BN (big number). fix #5239
* process: expose NODE_MODULE_VERSION in process.versionsRod Vagg2013-04-082-1/+3
|
* crypto: move write_head in bio's Reset() methodFedor Indutny2013-04-081-0/+1
|
* crypto: fix changing buffers in bioFedor Indutny2013-04-081-1/+1
| | | | | | We should go to next buffer if *current* one is full, not the next one. Otherwise we may hop through buffers and written data will become interleaved, which will lead to failure.
* crypto: fix style issues in bioFedor Indutny2013-04-082-29/+37
| | | | Stop changing arguments, use local variables for things that change.
* crypto: zero is not an error if writing 0 bytesFedor Indutny2013-04-071-1/+3
| | | | fix #5128
* crypto: use better memory BIO implementationFedor Indutny2013-04-053-4/+410
|
* Now working on 0.10.4isaacs2013-04-031-2/+2
|
* 2013.04.03, Version 0.10.3 (Stable)v0.10.3v0.10.3-releaseisaacs2013-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * npm: Upgrade to 1.2.17 * child_process: acknowledge sent handles (Fedor Indutny) * etw: update prototypes to match dtrace provider (Timothy J Fontaine) * dtrace: pass more arguments to probes (Dave Pacheco) * build: allow building with dtrace on osx (Dave Pacheco) * http: Remove legacy ECONNRESET workaround code (isaacs) * http: Ensure socket cleanup on client response end (isaacs) * tls: Destroy socket when encrypted side closes (isaacs) * repl: isSyntaxError() catches "strict mode" errors (Nathan Rajlich) * crypto: Pass options to ctor calls (isaacs) * src: tie process.versions.uv to uv_version_string() (Ben Noordhuis)
* etw: update prototypes to match dtrace providerTimothy J Fontaine2013-04-032-14/+26
| | | | | | The DTrace probes were updated to accomodate platforms that can't handle structs, update the prototypes for ETW but it's not necessary to do anything with the new arguments as it's redundant information.
* dtrace: check if _handle property is setBen Noordhuis2013-04-031-2/+6
| | | | | Check that _handle is an object before trying to read its `fd` property, avoids bogus values.
* dtrace: actually use the _handle.fd valueTimothy J Fontaine2013-04-032-19/+23
| | | | | When using the DTrace/systemtap subsystems it would be helpful to actually have an fd associated with the requests and responses.
* dtrace: pass more arguments to probesDave Pacheco2013-04-032-24/+28
| | | | | | OSX and other DTrace implementations don't support dereferencing structs in probes. To accomodate that pass members from the struct as arguments so that DTrace is useful on those systems.
* src: remove unused variablesBrian White2013-04-021-4/+2
|
* Node working on 0.10.3isaacs2013-03-281-2/+2
|
* Merge branch 'v0.10.2-release' into v0.10isaacs2013-03-281-1/+1
|\
| * 2013.03.28, Version 0.10.2 (Stable)v0.10.2v0.10.2-releaseisaacs2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * npm: Upgrade to 1.2.15 * uv: Upgrade to 0.10.3 * tls: handle SSL_ERROR_ZERO_RETURN (Fedor Indutny) * tls: handle errors before calling C++ methods (Fedor Indutny) * tls: remove harmful unnecessary bounds checking (Marcel Laverdet) * crypto: make getCiphers() return non-SSL ciphers (Ben Noordhuis) * crypto: check randomBytes() size argument (Ben Noordhuis) * timers: do not calculate Timeout._when property (Alexey Kupershtokh) * timers: fix off-by-one ms error (Alexey Kupershtokh) * timers: handle signed int32 overflow in enroll() (Fedor Indutny) * stream: Fix stall in Transform under very specific conditions (Gil Pedersen) * stream: Handle late 'readable' event listeners (isaacs) * stream: Fix early end in Writables on zero-length writes (isaacs) * domain: fix domain callback from MakeCallback (Trevor Norris) * child_process: don't emit same handle twice (Ben Noordhuis) * child_process: fix sending utf-8 to child process (Ben Noordhuis)
* | src: tie process.versions.uv to uv_version_string()Ben Noordhuis2013-03-281-3/+1
|/
* tls: handle SSL_ERROR_ZERO_RETURNFedor Indutny2013-03-281-0/+5
| | | | see #5004
* domain: fix domain callback from MakeCallbackTrevor Norris2013-03-262-38/+56
| | | | | | | | | | | | Since _tickCallback and _tickDomainCallback were both called from MakeCallback, it was possible for a callback to be called that required a domain directly to _tickCallback. The fix was to implement process.usingDomains(). This will set all applicable functions to their domain counterparts, and set a flag in cc to let MakeCallback know domain callbacks always need to be checked. Added test in own file. It's important that the test remains isolated.
* crypto: make getCiphers() return non-SSL ciphersBen Noordhuis2013-03-251-6/+16
| | | | | | | | | | | | | | Commit f53441a added crypto.getCiphers() as a function that returns the names of SSL ciphers. Commit 14a6c4e then added crypto.getHashes(), which returns the names of digest algorithms, but that creates a subtle inconsistency: the return values of crypto.getHashes() are valid arguments to crypto.createHash() but that is not true for crypto.getCiphers() - the returned values are only valid for SSL/TLS functions. Rectify that by adding tls.getCiphers() and making crypto.getCiphers() return proper cipher names.
* tls: remove harmful unnecessary bounds checkingMarcel Laverdet2013-03-241-20/+0
| | | | | | | | | | | | | | | | | | | The EncIn, EncOut, ClearIn & ClearOut functions are victims of some code copy + pasting. A common line copied to all of them is: `if (off >= buffer_length) { ...` 448e0f43 corrected ClearIn's check from `>=` to `>`, but left the others unchanged (with an incorrect bounds check). However, if you look down at the next very next bounds check you'll see: `if (off + len > buffer_length) { ...` So the check is actually obviated by the next line, and should be removed. This fixes an issue where writing a zero-length buffer to an encrypted pair's *encrypted* stream you would get a crash.
* crypto: check randomBytes() size argumentBen Noordhuis2013-03-231-3/+5
| | | | | | | | | | Throw a TypeError if size > 0x3fffffff. Avoids the following V8 fatal error: FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() length exceeds max acceptable value Fixes #5126.
* Now working on v0.10.2isaacs2013-03-211-2/+2
|
* 2013.03.21, Version 0.10.1 (Stable)v0.10.1v0.10.1-releaseisaacs2013-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * npm: upgrade to 1.2.15 * crypto: Improve performance of non-stream APIs (Fedor Indutny) * tls: always reset this.ssl.error after handling (Fedor Indutny) * tls: Prevent mid-stream hangs (Fedor Indutny, isaacs) * net: improve arbitrary tcp socket support (Ben Noordhuis) * net: handle 'finish' event only after 'connect' (Fedor Indutny) * http: Don't hot-path end() for large buffers (isaacs) * fs: Missing cb errors are deprecated, not a throw (isaacs) * fs: make write/appendFileSync correctly set file mode (Raymond Feng) * stream: Return self from readable.wrap (isaacs) * stream: Never call decoder.end() multiple times (Gil Pedersen) * windows: enable watching signals with process.on('SIGXYZ') (Bert Belder) * node: revert removal of MakeCallback (Trevor Norris) * node: Unwrap without aborting in handle fd getter (isaacs)
* windows: enable watching signals with process.on('SIGXYZ')Bert Belder2013-03-201-4/+0
| | | | | | | | | This reverts commit ea1cba6246a8b1784e22d076139b9244a9ff42f8. The offending commit was intended to land on the v0.8 branch only, but it accidentally got merged at some point. Closes #5054.
* node: revert removal of MakeCallbackTrevor Norris2013-03-171-15/+25
| | | | | In 0168109 an implementation of MakeCallback was accidently removed. It has been re-added.
* net: improve arbitrary tcp socket supportBen Noordhuis2013-03-141-0/+10
| | | | | | | | | | | | | | | | Consider this example: // fd 3 is a bound tcp socket var s = net.createServer(cb); s.listen({ fd: 3 }); console.log(s.address()); // prints null This commit makes net.Server#address() print the actual address. Ditto for non-listen sockets; properties like net.Socket#localAddress and net.Socket#remoteAddress now return the correct value. Fixes #5009.
* deps: upgrade libuv to 7b66ea1Ben Noordhuis2013-03-142-0/+8
|
* core: Move UNWRAP_NO_ABORT to handle_wrap.hisaacs2013-03-132-6/+6
| | | | | | Otherwise it cannot be used in StreamWrap. Forgot to include in last patch, broke the build.
* core: Unwrap without aborting in handle fd getterisaacs2013-03-131-1/+1
|
* Now working on 0.10.1isaacs2013-03-111-2/+2
|
* 2013.03.11, Version 0.10.0 (Stable)v0.10.0v0.10.0-releaseisaacs2013-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * npm: Upgrade to 1.2.14 * core: Append filename properly in dlopen on windows (isaacs) * zlib: Manage flush flags appropriately (isaacs) * domains: Handle errors thrown in nested error handlers (isaacs) * buffer: Strip high bits when converting to ascii (Ben Noordhuis) * win/msi: Enable modify and repair (Bert Belder) * win/msi: Add feature selection for various node parts (Bert Belder) * win/msi: use consistent registry key paths (Bert Belder) * child_process: support sending dgram socket (Andreas Madsen) * fs: Raise EISDIR on Windows when calling fs.read/write on a dir (isaacs) * unix: fix strict aliasing warnings, macro-ify functions (Ben Noordhuis) * unix: honor UV_THREADPOOL_SIZE environment var (Ben Noordhuis) * win/tty: fix typo in color attributes enumeration (Bert Belder) * win/tty: don't touch insert mode or quick edit mode (Bert Belder)
* domain: Fix double-exit on nested domainsisaacs2013-03-091-1/+3
| | | | Minor oversight in fix for #4953.
* Now working on 0.10.0isaacs2013-03-081-2/+2
|
* lintisaacs2013-03-081-1/+1
|
* core: Append filename properly in dlopen on windowsisaacs2013-03-081-1/+1
| | | | Fixes simple/test-module-loading on win32
* domains: Handle errors thrown in nested error handlersisaacs2013-03-081-5/+15
| | | | | | | If a domain error handler throws, it should be caught if it was in a stack of nested domains. Fix #4953
* buffer: speed up ascii character scanningBen Noordhuis2013-03-082-2/+96
| | | | | Speed up ASCII character scanning and conversion by 25% to 30% by scanning and converting whole words instead of individual bytes.
* buffer: strip high bits when converting to asciiBen Noordhuis2013-03-081-2/+26
| | | | | | | | | | | | | | Consider the following example: console.log(Buffer('ú').toString('ascii')); Before this commit, the contents of the buffer was used as-is and hence it prints 'ú'. Now, it prints 'C:'. Perhaps not much of an improvement but it conforms to what the documentation says it does: strip off the high bits. Fixes #4371.
* Now working on 0.9.13isaacs2013-03-061-2/+2
| | | | Probably that will be 0.10.0 instead, though.
* 2013.03.06, Version 0.9.12 (Unstable)v0.9.12v0.9.12-releaseisaacs2013-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stream: Allow strings in Readable.push/unshift (isaacs) * stream: Remove bufferSize option (isaacs) * stream: Increase highWaterMark on large reads (isaacs) * stream: _write: takes an encoding argument (isaacs) * stream: _transform: remove no output() method, provide encoding (isaacs) * stream: Don't require read(0) to emit 'readable' event (isaacs) * node: Add --throw-deprecation (isaacs) * http: fix multiple timeout events (Eugene Girshov) * http: More useful setTimeout API on server (isaacs) * net: use close callback, not process.nextTick (Ben Noordhuis) * net: Provide better error when writing after FIN (isaacs) * dns: Support NAPTR queries (Pavel Lang) * dns: fix ReferenceError in resolve() error path (Xidorn Quan) * child_process: handle ENOENT correctly on Windows (Scott Blomquist) * cluster: Rename destroy() to kill(signal=SIGTERM) (isaacs) * build: define nightly tag external to build system (Timothy J Fontaine) * build: make msi build work when spaces are present in the path (Bert Belder) * build: fix msi build issue with WiX 3.7/3.8 (Raymond Feng) * repl: make compatible with domains (Dave Olszewski) * events: Code cleanup and performance improvements (Trevor Norris)
* node: Add --throw-deprecationisaacs2013-03-062-1/+12
| | | | Extremely handy when tracking down a flood of recursive nextTick warnings.
* handle_wrap: add close callback supportBen Noordhuis2013-03-062-13/+29
|
* handle_wrap: replace unref_ field with flags_ fieldBen Noordhuis2013-03-063-5/+7
| | | | Prep work for a follow-up commit that adds support for close callbacks.
* src: remove unused symbols in node_file.ccBen Noordhuis2013-03-061-7/+0
|