- Aug 17, 2015
-
-
Ryan Graham authored
Any time the connection state or the underlying handle itself changes, the socket's name (aka, local address) can change. To deal with this we need to reset the cached sockname any time we set or unset the internal handle or an existing handle establishes a connection. PR-URL: https://github.com/nodejs/io.js/pull/2095 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Gireesh Punathil authored
simple tests test-http-request-end.js, test-http-default-encoding.js hangs in AIX. The root cause for both the failures is related to the timing with which packets are sent between the client and server. On the client side, one factor that affects the timing is Nagle's algorithm. With Nagle enabled there may be a delay between two packets as the stack may wait until either: a. An acknowledgement for the first packet is received, or b. 200 ms elapses. before sending the second packet. Similarly at the server side 2 sequential packages can be delivered to the application either together or separatly. On AIX we see that they are delivered separately to the server, while on Linux delivered together. If we change the timing, for example disabling Nagle on AIX we see the 2 packets delivered together and the tests pass. In the test case simple/test-http-request-end.js, the client request handler of the server receives and stores the data in a data callback, closes the server in a request end callback, and writes to the client and ends the response, in-line with the request receipt. An HTTP parser module parses the incoming message, and invokes callback routines which are registered for HTTP events (such as header, body, end etc.) Because the termination sequence arrive in a separate packet, there is a delay in parsing that message and identify that the client request ended (and thereby invoke the request end call backhandler). Due to this delay, the response close happens first, which in-turn destroys the server socket leading to the fd and watcher removal from the uv loop abandoning further events on this connection, and end call back never being called, causing the reported hang. simple/test-http-default-encoding.js suffers from the same problem. Also, remove the timer logic from the test case. Test harness anyways contain a timer which controls the individual tests so remove such controls from the test case, as suggested by @tjfontaine Reviewed-By:
Michael Dawson <michael_dawson@ca.ibm.com> PR-URL: https://github.com/joyent/node/pull/9432 PORT-FROM: joyent/node @ 13e11314 PR-URL: https://github.com/nodejs/io.js/pull/2294 Reviewed-By:
Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
James M Snell authored
* doc: improve http.abort description * doc: mention that mode is ignored if file exists * docs: Fix default options for fs.createWriteStream() * Documentation update about Buffer initialization * doc: add a note about readable in flowing mode * doc: Document http.request protocol option * doc, comments: Grammar and spelling fixes * updated documentation for fs.createReadStream * Update child_process.markdown, spelling * doc: Clarified read method with specified size argument. * docs:events clarify emitter.listener() behavior * doc: two minor stream doc improvements * doc: clarify Readable._read and Readable.push * doc: stream.unshift does not reset reading state * doc: readable event clarification * doc: additional refinement to readable event Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Ben Noorduis <ben@strongloop.com> PR-URL: https://github.com/nodejs/io.js/pull/2302
-
- Aug 06, 2015
-
-
Ben Noordhuis authored
The install prefix gets written to config.gypi and config.mk. Tildes were expanded in the first file but not in the second one, causing the `make install` target to install files to a directory named `~` in the current working directory. Fixes: https://github.com/nodejs/node/issues/75 PR-URL: https://github.com/nodejs/io.js/pull/2307 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu> Reviewed-By:
Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
-
- Aug 05, 2015
-
-
Rod Vagg authored
-
Rod Vagg authored
Notable changes: * buffer: - Due to changes in V8, it has been necessary to reimplement Buffer on top of V8's Uint8Array. While every effort has been made to maintain performance, users are likely to experience a different performance profile depending on how Buffer is used. (Trevor Norris) #1825. - Buffer can now take ArrayBuffers as a constructor argument (Trevor Norris) #2002. - When a single buffer is passed to Buffer.concat(), a new, copied Buffer object will be returned; previous behavior was to return the original Buffer object (Sakthipriyan Vairamani) #1937. * build: PPC support has been added to core to allow compiling on pLinux BE and LE (AIX support coming soon) (Michael Dawson) #2124. * dgram: If an error occurs within socket.send() and a callback has been provided, the error is only passed as the first argument to the callback and not emitted on the socket object; previous behavior was to do both (Matteo Collina & Chri... -
Rod Vagg authored
PR-URL: https://github.com/nodejs/io.js/pull/2299 Reviewed-by:
Stephen Belanger <admin@stephenbelanger.com> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Jeremiah Senkpiel authored
Persists the REPL history in plain text using the new NODE_REPL_HISTORY environment variable. Deprecates NODE_REPL_HISTORY_FILE. The REPL will notify the user and automatically convert the history to the new format if files are specified. PR-URL: https://github.com/nodejs/io.js/pull/2224 Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Jeremiah Senkpiel authored
Makes the REPL persistently save history by default to ~/.node_repl_history when in terminal mode. This can be disabled by setting NODE_REPL_HISTORY="". PR-URL: https://github.com/nodejs/io.js/pull/2224 Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Jeremiah Senkpiel authored
PR-URL: https://github.com/nodejs/io.js/pull/2224 Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Jeremiah Senkpiel authored
PR-URL: https://github.com/nodejs/io.js/pull/2224 Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Michaël Zasso authored
A bug on ARMv6 makes the process crash when the V8 debugger is used. Disabling vector ICs as a workaround. V8-Bug: https://code.google.com/p/v8/issues/detail?id=4338 PR-URL: https://github.com/nodejs/io.js/pull/2220 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Michaël Zasso authored
Includes cherry-picks for: * JitCodeEvent patch: https://crrev.com/f7969b1d5a55e66237221a463daf422ac7611788 * argparse patch: https://crrev.com/44bc918458481d60b08d5566f0f31a79e39b85d7 PR-URL: https://github.com/nodejs/io.js/pull/2220 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Brendan Ashworth authored
This commit fixes agent.getName(), which returned an extra colon according to the docs, and adds tests (it was previously not unit tested). PR-URL: https://github.com/nodejs/io.js/pull/1617 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Rich Trott authored
If tab completion is not being used, allow user to enter tab characters. PR-URL: https://github.com/nodejs/io.js/pull/1761 Reviewed-By:
Brendan Ashworth <brendan.ashworth@me.com>
-
Frederic Hemberger authored
PR-URL: https://github.com/nodejs/io.js/pull/2247 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Rod Vagg authored
Accidentally left when upgrading to V8 4.4.63.9 PR-URL: https://github.com/nodejs/io.js/pull/2275 Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Trevor Norris authored
The new implementation of Buffer missed the check for null/undefined as the first argument to new Buffer(). Reintroduce the check and add test. Fix: e8734c0 "buffer: implement Uint8Array backed Buffer" Fix: https://github.com/nodejs/io.js/issues/2194 PR-URL: https://github.com/nodejs/io.js/pull/2195 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Rod Vagg authored
Accidentally removed @ https://github.com/nodejs/io.js/pull/2124 when ppc support was added PR-URL: https://github.com/nodejs/io.js/pull/2233 Reviewed-By:
Johan Bergstrom <bugs@bergstroem.nu> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Michael Dawson authored
These are the core changes that allow pLinux BE/LE compile. They don't include all of the changes needed for AIX which will follow once we have pLinux up and running in the builds PR-URL: https://github.com/nodejs/io.js/pull/2124 Reviewed-By:
Ben Noordhuis <ben@strongloop.com> Reviewed-By:
Johan Bergstrom <bugs@bergstroem.nu>
-
Trevor Norris authored
Throwing a JS error from C++ does not mean the function will return early. This must be done manually. Also remove extraneous comment no longer relevant. Fix: 2903030 "buffer: switch API to return MaybeLocal<T>" PR-URL: https://github.com/nodejs/io.js/pull/2225 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
Rod Vagg authored
PR-URL: https://github.com/nodejs/io.js/pull/2171 Reviewed-By:
Alexis Campailla <alexis@janeasystems.com> Reviewed-By:
Johan Bergström <bugs@bergstroem.nu>
-
Rod Vagg authored
PR-URL: https://github.com/nodejs/io.js/pull/2154 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
jomo authored
* adds missing HTTP status codes * corrects those with a wrong description * the falsely included codes have been kept PR-URL: https://github.com/nodejs/io.js/pull/1470 Reviewed-By:
Brendan Ashworth <brendan.ashworth@me.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Brian White <mscdex@mscdex.net> Reviewed-By:
James M Snell <jasnell@gmail.com>
-
Fedor Indutny authored
Put the `...^` arrow string to the hidden property of the object, and use it only when printing error to the stderr. Fix: https://github.com/nodejs/io.js/issues/2104 PR-URL: https://github.com/nodejs/io.js/pull/2108 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Rod Vagg authored
PR-URL: https://github.com/nodejs/io.js/pull/2096 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
Ben Noordhuis authored
PR-URL: https://github.com/nodejs/io.js/pull/2092 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Rod Vagg authored
-
Rod Vagg authored
Temporary fix only, node-gyp needs to be aware of whether it can even download this file for the current runtime so that information needs to come from the process itself. Floating patch on npm. PR-URL: https://github.com/nodejs/io.js/pull/2066 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu> Reviewed-By:
Ryan Graham <ryan@strongloop.com>
-
Rod Vagg authored
A temporary fix only, node-gyp needs to be made more intelligent upstream about figuring out where to find the download file by inspecting the binary. Floating patch on npm. PR-URL: https://github.com/nodejs/io.js/pull/2066 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu> Reviewed-By:
Ryan Graham <r.m.graham@gmail.com>
-
Ben Noordhuis authored
The old smalloc-based implementation has been removed, the typed array implementation is the only one that is left now. PR-URL: https://github.com/nodejs/io.js/pull/2022 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Remove two tests that assume creating big buffers fails. The size limit is twice as big on 64 bits architectures now and is going to be removed completely in the not too distant future. PR-URL: https://github.com/nodejs/io.js/pull/2022 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Fix a strict mode violation that made the test fail to run. It appears to be a regression that was introduced in commit f29762f4 ("test: enable linting for tests") which I was the sole reviewer of, so mea culpa. PR-URL: https://github.com/nodejs/io.js/pull/2022 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Upgrade the bundled V8 and update code in src/ and lib/ to the new API. Notable backwards incompatible changes are the removal of the smalloc module and dropped support for CESU-8 decoding. CESU-8 support can be brought back if necessary by doing UTF-8 decoding ourselves. This commit includes https://codereview.chromium.org/1192973004 to fix a build error on python 2.6 systems. The original commit log follows: Use optparse in js2c.py for python compatibility Without this change, V8 won't build on RHEL/CentOS 6 because the distro python is too old to know about the argparse module. PR-URL: https://github.com/nodejs/io.js/pull/2022 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Trevor Norris authored
Buffer now uses the ArrayBuffer as the backing store if passed to the constructor. Fixes: https://github.com/nodejs/io.js/issues/106 PR-URL: https://github.com/nodejs/io.js/pull/2002 Reviewed-By:
Domenic Denicola <d@domenic.me>
-
Trevor Norris authored
PR-URL: https://github.com/nodejs/io.js/pull/2003 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
Trevor Norris authored
Starting in V8 v4.3 the maximum array index of a typed array is the same as the largest Smi supported on a given architecture. To compensate for these differences export kMaxLength from the buffer module with the correct size for the given architecture. PR-URL: https://github.com/nodejs/io.js/pull/2003 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
cjihrig authored
Currently, each cluster worker is assigned an ever increasing --debug-port argument. A long running cluster application that does not use the debugger can run into errors related to the port range. This commit mitigates the problem by only setting the debug port if the master is started with debug arguments, or the user explicitly defines debug arguments for the worker. This commit also adds a new debug port offset counter that is only incremented when a worker is created that utilizes debugging. Fixes: https://github.com/joyent/node/issues/8159 Refs: https://github.com/nodejs/io.js/pull/1524 PR-URL: https://github.com/nodejs/io.js/pull/1949 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Oleg Elifantiev <oleg@elifantiev.ru>
-
Sakthipriyan Vairamani authored
Fix Buffer.concat() so a copy is always returned regardless of the number of buffers that were passed. Previously if the array length was one then the same same buffer was returned. This created a special case for the user where there was a chance mutating the buffer returned by .concat() could mutate the buffer passed in. Also fixes an inconsistency when throwing if an array member was not a Buffer instance. For example: Buffer.concat([42]); // Returns 42 Buffer.concat([42, 1]); // Throws a TypeError Now .concat() will always throw if an array member is not a Buffer instance. See: https://github.com/nodejs/io.js/issues/1891 PR-URL: https://github.com/nodejs/io.js/pull/1937 Reviewed-By:Trevor Norris <trev.norris@gmail.com> Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
Fedor Indutny authored
Do not detach the socket from the response until all data is actually sent to the other side. See: https://github.com/iojs/io.js/pull/1373 PR-URL: https://github.com/nodejs/io.js/pull/1411 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-