- Jan 31, 2015
-
-
cjihrig authored
Currently, JSON.stringify() is used to create error messages on failed assertions. This causes an error when stringifying objects with circular references. This commit switches out JSON.stringify() for util.inspect(), which can handle circular references. PR-URL: https://github.com/iojs/io.js/pull/668 Reviewed-By:
Julien Gilli <julien.gilli@joyent.com> Reviewed-By:
Bert Belder <bertbelder@gmail.com> Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
Bert Belder authored
* Include a description for the error message * For rename, link, and symlink, include both the source and destination path in the error message. * Expose the destination path as the `dest` property on the error object. * Fix a bug where `ThrowUVException()` would incorrectly delegate to `Environment::TrowErrnoException()`. API impact: * Adds an extra overload for node::UVException() which takes 6 arguments. PR: https://github.com/iojs/io.js/pull/675 Fixes: https://github.com/iojs/io.js/issues/207 Closes: https://github.com/iojs/io.js/pull/293 Reviewed-by:
Ben Noordhuis <info@bnoordhuis.nl>
-
Ben Noordhuis authored
A number -> uint32 type coercion bug made buffer sizes larger than kMaxLength (0x3fffffff) wrap around. Instead of rejecting the requested size with an exception, the constructor created a buffer with the wrong size. PR-URL: https://github.com/iojs/io.js/pull/657 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Sam Roberts authored
Server sockets should be shared by default, and client sockets should be exclusive by default. For net/TCP, this is how it is, for dgram/UDP, its a little less clear what a client socket is, but a socket that is auto-bound during a dgram.send() is not usefully shared among cluster workers, any more than an outgoing TCP connection would be usefully shared. Since implicit binds become exclusive, implicit/client dgram sockets can now be used with cluster on Windows. Before, neither explicit nor implicitly bound sockets could be used, causing dgram to be completely unsupported with cluster on Windows. After this change, they become half supported. PR: https://github.com/iojs/io.js/pull/325 PR: https://github.com/joyent/node/pull/8643 Reviewed-by:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-by:
Bert Belder <bertbelder@gmail.com>
-
Brendan Ashworth authored
This commit removes the benchmark spacing modification in `client-request-body.js` and `end-vs-write-end.js` which adds two spaces to the end of some variables to make sure the lines line up. The reason behind this is that its totally pointless (the lines don't actually line up with it) and it disallows you to parse the output with a tool like awk, or at least makes it a lot harder. PR-URL: https://github.com/iojs/io.js/pull/650 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Fedor Indutny authored
Improves `crypto.createHash().update().digest()` performance by 10%. PR-URL: https://github.com/iojs/io.js/pull/670 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Jan 30, 2015
-
-
Fedor Indutny authored
Boosts speed up to 10% on primitive `createHash().update().digest()` benchmark. PR-URL: https://github.com/iojs/io.js/pull/664 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Fedor Indutny authored
PR-URL: https://github.com/iojs/io.js/pull/664 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Fedor Indutny authored
Handle most popular cases in a trie-style, branching on a first character. Remove useless HandleScope which was only eating time without producing any value. PR-URL: https://github.com/iojs/io.js/pull/664 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Calvin Metcalf authored
Adds a note that the default padding for publicDecrypt/privateEncrypt is RSA_PKCS1_PADDING instead of RSA_PKCS1_OAEP_PADDING as it is for privateDecrypt/publicEncrypt. PR-URL: https://github.com/iojs/io.js/pull/659 Reviewed-By:
Brendan Ashworth <brendan.ashworth@me.com>
-
Qasim Zaidi authored
PR-URL: https://github.com/iojs/io.js/pull/480 Reviewed-By:
Stephen Belanger <admin@stephenbelanger.com>
-
Ben Noordhuis authored
PR-URL: https://github.com/iojs/io.js/pull/656 Reviewed-By:
Fedor Indutny <fedor.indutny@gmail.com>
-
- Jan 29, 2015
-
-
Micleusanu Nicu authored
PR-URL: https://github.com/iojs/io.js/pull/651 Reviewed-By:
Brendan Ashworth <brendan.ashworth@me.com>
-
Fishrock123 authored
Adds info on the `wrk` prerequisite for http benchmarks and how to run benchmarks with options. PR-URL: https://github.com/iojs/io.js/pull/629 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Evan Lucas <evanlucas@me.com>
-
Saúl Ibarra Corretgé authored
PR-URL: https://github.com/iojs/io.js/pull/644 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Roman Reiss authored
This restores the pretty-printed options output for improved readability and adds a final warning message to inform on possibly scrolled-off warnings. PR-URL: https://github.com/iojs/io.js/pull/638 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Ben Noordhuis authored
Signal dispositions are inherited by child processes. Restore ours to sane defaults in case our parent process changed it, to prevent quirky behavior when the parent does something silly like ignoring SIGSEGV. PR-URL: https://github.com/iojs/io.js/pull/615 Reviewed-By:
Sam Roberts <sam@strongloop.com>
-
Ben Noordhuis authored
Instead of installing an early debug signal handler, simply block the SIGUSR1 signal at start-up and unblock it when the debugger is ready. Both approaches are functionally equivalent but blocking the signal accomplishes it in fewer lines of code. PR-URL: https://github.com/iojs/io.js/pull/615 Reviewed-By:
Sam Roberts <sam@strongloop.com>
-
Ben Noordhuis authored
Execute the per-platform initialization logic as early as possible, for two reasons: 1. It opens the way for an upcoming commit to simplify early SIGUSR1 handling. 2. It should make life easier for embedders because io.js no longer mucks around with the file descriptor limit or signal disposition of the process. PR-URL: https://github.com/iojs/io.js/pull/615 Reviewed-By:
Sam Roberts <sam@strongloop.com>
-
- Jan 28, 2015
-
-
Ben Noordhuis authored
Add a regression test for https://github.com/iojs/io.js/issues/627. Before the http_parser rollback to 2.3.0, the request callback was called but an 'upgrade' event was not emitted, even though there is an Upgrade header present in the request. PR-URL: https://github.com/iojs/io.js/pull/628 Reviewed-By:
Fedor Indutny <fedor.indutny@gmail.com>
-
Ben Noordhuis authored
Commit 598efcbe ("deps: update http_parser to 2.4.1") introduced a regression in HTTP Upgrade header handling. Fixes: https://github.com/iojs/io.js/issues/627 PR-URL: https://github.com/iojs/io.js/pull/628 Reviewed-By:
Fedor Indutny <fedor.indutny@gmail.com>
-
Calvin Metcalf authored
Per #445 this removes a reference to this._readableState in hash._flush. It was used to get the encoding on the readable side to pass to the writable side but omitting it just causes the stream to handle the encoding issues. PR-URL: https://github.com/iojs/io.js/pull/610 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By:
Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
-
Vladimir Kurchatkin authored
This makes possible to use `for..of` loop with buffers. Also related `keys`, `values` and `entries` methods are added for feature parity with `Uint8Array`. PR-URL: https://github.com/iojs/io.js/pull/525 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
cjihrig authored
Console.prototype.timeEnd() returns NaN if the timer label corresponds to a property on Object.prototype. This commit uses a Map to construct the _times object. Fixes: https://github.com/joyent/node/issues/9069 PR-URL: https://github.com/iojs/io.js/pull/563 Reviewed-By:
Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com> Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Fedor Indutny authored
PR-URL: https://github.com/iojs/io.js/pull/625 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Fix iojs/io.js#477
-
Saúl Ibarra Corretgé authored
Switch from running the loop with UV_RUN_ONCE to UV_RUN_DEFAULT, because it's possible that the poll returns earlier than expected and thus the timer is not run on a single interation. The loop is not stopped either from the timer callback or from the async handle's. PR-URL: https://github.com/iojs/io.js/pull/622 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Yosuke Furukawa authored
PR-URL: https://github.com/iojs/io.js/pull/584 Reviewed-By:
Evan Lucas <evanlucas@me.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Bert Belder authored
The offending doc change clarified nothing, but put the arguments to fs.symlink() and fs.symlinkSync() in the wrong order. This reverts commit 8146f2e6. BUG: https://github.com/joyent/node/issues/8920 PR: https://github.com/joyent/node/pull/8936
-
- Jan 27, 2015
-
-
Mathias Küsel authored
In theory the msi should broadcast a 'WM_SETTINGCHANGE' message to all windows after modifying the PATH environment variable. This ensures that the new PATH is visible to other processes without restarting windows (although it's still necessary to close and reopen active console windows). Unfortunately, the broadcast doesn't always happen, for unknown reasons. That's why this patch adds a custom action that unconditionally broadcasts a WM_SETTINGCHANGE message. Bug: https://github.com/iojs/io.js/issues/603 PR: https://github.com/iojs/io.js/pull/613 Reviewed-by:
Bert Belder <bertbelder@gmail.com>
-
Johan Bergström authored
since .pkg-files already lives in out/ they're already gone. instead of moving artefacts into out/ (which might mess with upload scripts), delete their current location. PR-URL: https://github.com/iojs/io.js/pull/323 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Rod Vagg authored
PR-URL: https://github.com/iojs/io.js/pull/56 Reviewed-By:
Rod Vagg <rod@vagg.org> See PR for long discussion
-
Alex Kocharin authored
PR-URL: https://github.com/iojs/io.js/pull/56 Reviewed-By:
Rod Vagg <rod@vagg.org> See PR for long discussion
-
Michael Hart authored
PR-URL: https://github.com/iojs/io.js/pull/471 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Aleksey Smolenchuk authored
PR-URL: https://github.com/iojs/io.js/pull/611 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Andres Suarez authored
PR-URL: https://github.com/iojs/io.js/pull/503 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Johnny Ray Austin authored
Setting the default encoding for a writable stream does not return a boolean (true if successful or false if not) as the docs indicate. Instead, if the operation is successful nothing is returned and the method throws an error when something goes wrong. This stems from a contribution that was tweaked but the docs were never updated accordingly. PR-URL: https://github.com/iojs/io.js/pull/502 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
ttrfwork authored
PR-URL: https://github.com/iojs/io.js/pull/606 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Ben Noordhuis authored
Snapshots speed up start-up by a few milliseconds but are potentially dangerous because of the fixed hash seed that is used for strings and dictionaries, making collision denial-of-service attacks possible. Release builds on iojs.org have snapshots disabled but source builds did not, until now. The risk for individual source builds is low; the binary gets a random 32 bits hash seed that should be hard to guess by an external attacker. It's when binaries are distributed by, for example, a distro vendor that the fixed hash seed becomes a vulnerability, because then it's possible to target a large group of people at once. People that really need the faster start-up time can use the new --with-snapshot configure flag. PR-URL: https://github.com/iojs/io.js/pull/585 Reviewed-By:
Bert Belder <bertbelder@gmail.com> Reviewed-By:
Johan Bergström <bugs@bergstroem.nu> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Johan Bergström authored
PR-URL: https://github.com/iojs/io.js/pull/614 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
cjihrig authored
spawnSync() modifies the options argument. This commit makes a copy of options before any modifications occur. Fixes: https://github.com/iojs/io.js/issues/576 PR-URL: https://github.com/iojs/io.js/pull/579 Reviewed-By:
Bert Belder <bertbelder@gmail.com>
-