- Mar 22, 2016
-
-
Santiago Gimeno authored
The test is still failing sometimes because when trying to establish the second connection, the server is already closed. Bring back the code that handled this case and was removed in the last refactoring of the test. Also ignore the errors that might happen when sending the second handle to the worker because it may already have exited. PR-URL: https://github.com/nodejs/node/pull/5422 Reviewed-By:
Rich Trott <rtrott@gmail.com>
-
Fedor Indutny authored
Change types of all PBKDF2 params to `int` as they are `int` in `evp.h`. Check that `raw_keylen` fits into `int` before passing it to OpenSSL. Fix: #5396 PR-URL: https://github.com/nodejs/node/pull/5397 Reviewed-By:
Shigeki Ohtsu <ohtsu@iij.ad.jp> Reviewed-By:
Ben Noorhduis <info@bnoordhuis.nl>
-
nettofarah authored
Reorder slashed protocols so they are grouped by protocol name. This is done so it doesn't look like we're duplicating protocol names at the bottom of the list. PR-URL: https://github.com/nodejs/node/pull/5380 Reviewed-By:
Evan Lucas <evanlucas@me.com>
-
Rich Trott authored
Fixes: https://github.com/nodejs/node/issues/4404 PR-URL: https://github.com/nodejs/node/pull/5379 Reviewed-By:
Julien Gilli <jgilli@fastmail.fm> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Rich Trott authored
The lint rule is there to avoid a circular-dependency issue that only applies to `/lib`. In preparation for linting `/benchmark`, apply that rule to `/lib` only to avoid churn in `/benchmark`. Refs: https://github.com/nodejs/node/issues/3983#issuecomment-158956113 PR-URL: https://github.com/nodejs/node/pull/5371 Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Alexander Makarenko authored
Fix missing links described in #5322. PR-URL: https://github.com/nodejs/node/pull/5364 Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Evan Lucas authored
They were not being processed as relative links. PR-URL: https://github.com/nodejs/node/pull/5358 Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Rich Trott authored
Enable additional likely-uncontroversial lint rules: * `comma-dangle` set to prohibit dangling commas on objects and arrays that are defined on a single line. Multi-line definitions can use or omit a trailing comma. * `no-unused-labels` Prohibits defining a label that is not used. * `no-path-concat` Prohibits string-concatenation using i`__dirname` and `__filename`. Use `path.join()`, `path.resolve()`, or template strings instead. * `no-new-symbol` disallow use of `new` operator with `Symbol` object. Violating this rule would result in a `TypeError` at runtime.` PR-URL: https://github.com/nodejs/node/pull/5357 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Michaël Zasso <mic.besace@gmail.com>
-
Jeremiah Senkpiel authored
Fix: https://github.com/nodejs/node/issues/5351 Refs: https://github.com/nodejs/node/pull/4561 PR-URL: https://github.com/nodejs/node/pull/5352 Reviewed-By:
Rich Trott <rtrott@gmail.com> Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Minwoo Jung <jmwsoft@gmail.com>
-
Trevor Norris authored
Looping rapidly and making new connections causes problems on pi2. Instead create a new connection when an old connection has already been made. Running a stress test of 600 times and they all passed. Fixes: https://github.com/nodejs/node/issues/5302 PR-URL: https://github.com/nodejs/node/pull/5537 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Rich Trott <rtrott@gmail.com> Reviewed-By:
Alexis Campailla <orangemocha@nodejs.org>
-
Rich Trott authored
Reduce number of clients from 100 to 16 as Raspberry Pi in CI starts to exhibit flakiness around 22 or so clients. Fixes: https://github.com/nodejs/node/issues/5184 PR-URL: https://github.com/nodejs/node/pull/5346 Reviewed-By:
James M Snell <jasnell@gmail.com>
-
Rich Trott authored
`test-tls-ticket-cluster` and `test-vm-syntax-error-stderr` are no longer flaky. Refs: https://github.com/nodejs/node/issues/2510 Refs: https://github.com/nodejs/node/issues/2660 PR-URL: https://github.com/nodejs/node/pull/5459 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
Santiago Gimeno authored
This test was sometimes timing out in `OS X`. Remove the timeout and clean up the code. Reviewed-By:
Matteo Collina <matteo.collina@gmail.com> Reviewed-By:
James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/5339
-
Rich Trott authored
Add these rules: * no-restricted-modules: See http://eslint.org/docs/rules/no-restricted-modules. It has been configured to prohibit the use of the deprecated `sys` and `_linklist` modules. * no-new-require: See http://eslint.org/docs/rules/no-new-require * no-mixed-requires: http://eslint.org/docs/rules/no-mixed-requires PR-URL: https://github.com/nodejs/node/pull/5320 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Rich Trott authored
In `lib/_debugger.js`, remove check for `cb` in line 571 as it is guaranteed to be truthy due to line 521. PR-URL: https://github.com/nodejs/node/pull/5319 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Evan Lucas <evanlucas@me.com> Reviewed-By:
James M Snell <jasnell@gmail.com>
-
Marc Cuva authored
Function name in code sample had the wrong capitalization. PR-URL: https://github.com/nodejs/node/pull/5306 Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Rafael Cepeda authored
`Cluster.setupMaster(options)` Options object was missing an `args` property on the example. PR-URL: https://github.com/nodejs/node/pull/5305 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Jackson Tian authored
The description of httpVersionMajor & httpVersionMinor should have same context like httpVersion. PR-URL: https://github.com/nodejs/node/pull/5296 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Michael Dawson authored
Float v8 patch, which has been committed to v8 master and backported to 4.8 and 4.9 in google repos, onto 4.8 v8 in deps to resolve https://github.com/nodejs/node/issues/5089 Original title/commit from google repos for 4.8 is: PPC: [turbofan] Support for CPU models lacking isel. https://github.com/v8/v8/commit/2e4da65332753a4fed679be81634b7685616b1fd PR-URL: https://github.com/nodejs/node/pull/5293 Fixes: https://github.com/nodejs/node/issues/5089 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
jbergstroem - Johan Bergström <bugs@bergstroem.nu>
-
James M Snell authored
Rework the doc a bit to tighten it up, including removing the use of `you` Fix some line wrapping issues. PR-URL: https://github.com/nodejs/node/pull/5287 Reviewed-By:
Roman Klauke <romaaan.git@gmail.com> Reviewed-By:
Sakthipriyan Vairamani <thechargingvolcano@gmail.com> ...
-
Chinedu Francis Nwafili authored
Previous example didn't account for the 1 byte offset PR-URL: https://github.com/nodejs/node/pull/5282 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Tristan Slominski authored
Documents that creating a buffer from base64 encoded string transparently supports "URL and Filename Safe Alphabet" base64url encoding. PR-URL: https://github.com/nodejs/node/pull/5243 Reviewed-By:
Ben Noorhduis <info@bnoordhuis.nl> Reviewed-By:
Benjamin Gruenbaum <inglor@gmail.com> Reviewed-By:
Alejandro Oviedo <alejandro.oviedo.g@gmail.com>
-
Brian White authored
The comment refers to a property (called `_pendings`) that no longer exists. PR-URL: https://github.com/nodejs/node/pull/5233 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
James M Snell <jasnell@gmail.com>
-
Brian White authored
The value passed to `process.nextTick()` which is passed to the callback is already a valid object, so the conditional will always evaluate to true. PR-URL: https://github.com/nodejs/node/pull/5233 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
James M Snell <jasnell@gmail.com>
-
Tsarevich Dmitry authored
If none of VS2013/VS2015 WiX installs are found on a builder machine, skip node build and notify user about. PR-URL: https://github.com/nodejs/node/pull/5220 Reviewed-By:
João Reis <reis@janeasystems.com> Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Vaibhav authored
This commit updates events doc to describe removeListener behaviour when it is called within a listener. An example is added to make it more evident. A test is also incuded to make this behaviour consistent in future releases. Fixes: nodejs/node#4759 PR-URL: https://github.com/nodejs/node/pull/5201 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Benjamin Gruenbaum <benjamingr@gmail.com>
-
Anton Andesen authored
`readable.setEncoding(null)` - may be the most preferable way to proxy a binary data without any encoding/decoding overhead PR-URL: https://github.com/nodejs/node/pull/5155 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Prince J Wesley authored
PR-URL: https://github.com/nodejs/node/pull/5117 Reviewed-By:
Roman Reiss <me@silverwind.io> Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Minwoo Jung <jmwsoft@gmail.com>
-
Brian White authored
This commit reverts the const usage introduced by 68a6abc8 because v8 currently cannot optimize functions that contain these uses of const (unsupported phi use of const variable). The performance difference in this case can be up to ~130% for non-ascii/binary string encodings. PR-URL: https://github.com/nodejs/node/pull/5134 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
James M Snell <jasnell@gmail.com>
-
Evan Lucas authored
TransformState has the writeencoding property that gets set on the first _write. It is not declared when the transform state is initially constructed and can cause a deopt. PR-URL: https://github.com/nodejs/node/pull/5032 Reviewed-By:
Brian White <mscdex@mscdex.net> Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
James M Snell <jasnell@gmail.com>
-
Aayush Naik authored
As mentioned in the comment of the changed file, "a libuv limitation makes it necessary to bind()". But, that is not the case in this test. The subsequent call to send() results in an implicit bind(). PR-URL: https://github.com/nodejs/node/pull/5023 Reviewed-By:
Rich Trott <rtrott@gmail.com> Reviewed-By:
Saúl Ibarra Corretgé <saghul@gmail.com>
-
HUANG Wei authored
Add fromArrayLike() to handle logic of copying in values from array-like argument. PR-URL: https://github.com/nodejs/node/pull/4948 Reviewed-By:
Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Kevin Locke authored
The current documentation for writable.write only specifies that the callback is called "once the data has been fully handled". It is ambiguous whether this means "successfully handled" and, if so, whether the callback is called if the data can not be successfully handled (i.e. an error occurs). The ambiguity is not only in the documentation. The stream class implementations differ on this point. stream.Writable invokes the callback with any errors that occur during parameter checking or during calls to _write. However, not all classes return all errors to _write. zlib.Zlib does pass argument and state errors to the _write (_transform) callback, but does not pass data errors. http.OutgoingMessage passes argument type errors and some other types of errors, but not all. This inconsistency is behind issue #1746 and, I suspect, other issues in client code which passes a callback to write. This commit takes no position on whether the callback error behavior should changed, but simply attempts to document the current behavior in a way that is open to changes so that users are not caught by surprise. PR-URL: https://github.com/nodejs/node/pull/4810 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Jeremy Whitlock <jwhitlock@apache.org> Reviewed-By:
Benjamin Gruenbaum <benjamingr@gmail.com>
-
Rich Trott authored
Two cluster tests have recently changed so that they are no longer resource intensive. Move them back to parallel. Ref: https://github.com/nodejs/node/pull/4736 Ref: https://github.com/nodejs/node/pull/4739 PR-URL: https://github.com/nodejs/node/pull/4774 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu> Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
Evan Lucas authored
ReadableState has the resumeScheduled property that helps determine if a stream should be resumed. It was not assigned in the constructor. When stream.resume is called on a readable stream that is not flowing, it is set to true. This changes the property map of the ReadableState which can cause a deopt in onEofChunk and needMoreData. PR-URL: https://github.com/nodejs/node/pull/4761 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Brian White <mscdex@mscdex.net>
-
cjihrig authored
AfterGetAddrInfo() can potentially return an empty array of results without setting an error value. The JavaScript layer expects the array to have at least one value if an error is not returned. This commit sets a UV_EAI_NODATA error when an empty result array is detected. Fixes: https://github.com/nodejs/node/issues/4545 PR-URL: https://github.com/nodejs/node/pull/4715 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Evan Lucas <evanlucas@me.com> Reviewed-By:
Saúl Ibarra Corretgé <saghul@gmail.com>
-
julien.waechter authored
This changes vcbuild.bat to accept a new parameter (vc2015 or vc2013) to select the version of Visual Studio to use. PR-URL: https://github.com/nodejs/node/pull/4645 Reviewed-By:
João Reis <reis@janeasystems.com>
-
Sequoia McDowell authored
The docs mentioned that the docs source live in the node source, but did not link to same. PR-URL: https://github.com/nodejs/node/pull/4591 Reviewed-By:
Roman Reiss <me@silverwind.io> Reviewed-By:
James M Snell <jasnell@gmail.com>
-
Jeremiah Senkpiel authored
PR-URL: https://github.com/nodejs/node/pull/3726 Reviewed-By:
Matteo Collina <matteo.collina@gmail.com> Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Rich Trott <rtrott@gmail.com>
-
Anton Khlynovskiy authored
Array#pop() is known to be faster than Array#shift(). To be exact, it's O(1) vs. O(n). In this case there's no difference from which side of the "pool" array the object is retrieved, so .pop() should be preferred. PR-URL: https://github.com/nodejs/node/pull/2174 Reviewed-By:
mscdex - Brian White <mscdex@mscdex.net> Reviewed-By:
jasnell - James M Snell <jasnell@gmail.com> Reviewed-By:
ofrobots - Ali Ijaz Sheikh <ofrobots@google.com>
-