Karl Skomski
0357c8fc71
src: only memcmp if length > 0 in Buffer::Compare
...
Both pointer arguments to memcmp are defined as non-null
and compiler optimizes upon that.
PR-URL: https://github.com/nodejs/node/pull/2544
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com >
Reviewed-By: thefourtheye - Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-09-02 21:32:16 +10:00
Trevor Norris
c7351db6dc
test: improve performance of stringbytes test
...
String concatenation in the assert messages has drastic impact on test
runtime. Removal of these messages is unlikely to affect debugging if
any breaking changes are made.
Previous time to run:
$ time ./iojs test/parallel/test-stringbytes-external.js
real 0m2.321s
user 0m2.256s
sys 0m0.092s
With fix:
$ time ./iojs test/parallel/test-stringbytes-external.js
real 0m0.518s
user 0m0.508s
sys 0m0.008s
PR-URL: https://github.com/nodejs/node/pull/2544
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com >
Reviewed-By: thefourtheye - Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-09-02 21:32:16 +10:00
Rod Vagg
4867ceab49
build: set file permissions before uploading
...
PR-URL: https://github.com/nodejs/node/pull/2623
Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu >
2015-09-02 21:32:16 +10:00
Rod Vagg
cdc1b376c9
build: change staging directory on new server
...
new server has "nodejs" and "iojs" directories, upload to the
appropriate one
PR-URL: https://github.com/nodejs/node/pull/2623
Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu >
2015-09-02 21:32:16 +10:00
Rod Vagg
9f527c08cf
build: rename 'doc' directory to 'docs' for upload
...
to match nodejs.org directory name
PR-URL: https://github.com/nodejs/node/pull/2623
Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu >
2015-09-02 21:32:16 +10:00
Rod Vagg
4a8ca842d4
tools: update release.sh to work with new website
...
now need to specify "nodejs" or "iojs", also remove .gpg file
PR-URL: https://github.com/nodejs/node/pull/2623
Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu >
2015-09-02 21:32:15 +10:00
Rod Vagg
3864af9404
build: fix bad cherry-pick for vcbuild.bat build-release
...
PR-URL: https://github.com/nodejs/node/pull/2625
Reviewed-By: orangemocha - Alexis Campailla <orangemocha@nodejs.org >
Reviewed-By: joaocgreis - João Reis <reis@janeasystems.com >
2015-09-02 21:32:15 +10:00
Rod Vagg
499321fd38
doc: add TSC meeting minutes 2015-08-12
...
PR-URL: https://github.com/nodejs/node/pull/2438
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2015-09-02 21:32:15 +10:00
Rich Trott
c4ec1d2aad
test: unmark test-process-argv-0.js as flaky
...
https://github.com/nodejs/node/pull/2541 fixed flakiness
in test-process-argv-0.js. However, it was not removed
from the list of flaky tests. This removes it from the
list of flaky tests.
PR-URL: https://github.com/nodejs/node/pull/2613
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2015-09-02 21:31:47 +10:00
Rod Vagg
07019b6a1b
doc: add TSC meeting minutes 2015-08-26
...
PR-URL: https://github.com/nodejs/node/pull/2591
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-08-31 21:05:59 +10:00
P.S.V.R
f93032385e
doc: merge CHANGELOG.md with joyent/node ChangeLog
...
PR-URL: https://github.com/nodejs/node/pull/2536
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-08-30 17:43:23 +10:00
Roman Reiss
83c2c3b676
test: lint and refactor to avoid autocrlf issue
...
The test was failing after adding 'use strict' because the windows CI
uses the autocrlf option of git which converts \r into \r\n on checkout.
Refactored the test to not read itself anymore and create a temp file on
the fly instead to avoid this line-ending issue.
PR-URL: https://github.com/nodejs/node/pull/2494
Reviewed-By: Joao Reis <reis@janeasystems.com >
2015-08-29 20:00:10 +02:00
Jeremiah Senkpiel
4c5fc3b1d4
doc: clarify cluster behaviour with no workers
...
Fixes: https://github.com/nodejs/node/issues/1239
Ref: 41b75ca926
PR-URL: https://github.com/nodejs/node/pull/2606
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2015-08-28 20:32:56 -04:00
Bradley Meck
cd84f399e8
Introduce --link-module to ./configure
...
- Allows specifying a _third_party_main outside of the node repository
- Allows embedders to create custom builtin modules outside of node's
repository
PR-URL: https://github.com/nodejs/node/pull/2497
Reviewed-By: fishrock123 - Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: evanlucas - Evan Lucas <evanlucas@me.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2015-08-28 12:04:39 -04:00
João Reis
c6a54d0964
win,msi: correct installation path registry keys
...
This is a port of 14db629497 .
Original commit message:
Since install is per machine only, installation path should be stored
in local machine instead of current user. The registry stores HKLM in
different places for 32 and 64 bit applications, so the installer
will not suggest the old path when upgrading from 32 to 64 bit
version.
Fixes joyent/node#5592
Fixes joyent/node#25087
PR-URL: https://github.com/joyent/node/pull/25640
Reviewed-By: Alexis Campailla <alexis@janeasystems.com >
Reviewed-By: Bert Belder <bertbelder@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2565
Reviewed-By: Alexis Campailla <alexis@janeasystems.com >
2015-08-28 10:47:53 +01:00
João Reis
4cfe5eb9af
win,msi: change InstallScope to perMachine
...
This is an adaptation of 8e80528453 .
Original commit message:
The MSI install scope was set to the WiX default, which is per-user.
However, with UAC, it could not be installed by a standard user
because InstallPrivileges is elevated by default, hence the install
scope should be set to per-machine. Furthermore, the default install
path is a per-machine location and setting the system path requires
administrator privileges.
By changing the InstallScope to perMachine, Start Menu shortcuts are
placed in ProgramData and not the installing user's AppData folder,
making the shortcuts available to other users. This also fixes the
installation when AppData is a network folder.
The custom action is necessary to allow upgrades. Since a per-machine
MSI cannot upgrade an application installed per-user, the custom
action checks if there is going to be an upgrade to a previous
version installed per-user and sets the installation as per-user to
allow upgrading. Hence, the advantages of installing per-machine will
only apply in fresh installations.
Fixes joyent/node#5849
Fixes joyent/node#7629
PR-URL: https://github.com/joyent/node/pull/25640
Reviewed-By: Alexis Campailla <alexis@janeasystems.com >
Reviewed-By: Bert Belder <bertbelder@gmail.com >
The original commit was adapted to search all upgrade codes listed in
the upgrade table, as the current installer tries to upgrade from two
different upgrade codes.
PR-URL: https://github.com/nodejs/node/pull/2565
Reviewed-By: Alexis Campailla <alexis@janeasystems.com >
2015-08-28 10:47:51 +01:00
Michaël Zasso
422d56e36b
deps: update V8 to 4.4.63.30
...
PR-URL: https://github.com/nodejs/node/pull/2482
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-08-28 08:17:46 +02:00
Sakthipriyan Vairamani
b11e256574
test: use tmpDir instead of fixturesDir
...
This test was using fixturesDir to create temp files to test. This
patch replaces that with tmpDir and uses `assert` module to test.
Also, this test has been moved to `parallel`, from `sequential` mode.
PR-URL: https://github.com/nodejs/node/pull/2583
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2015-08-28 04:18:03 +05:30
Ben Noordhuis
de88255b0f
Revert "lib,src: add unix socket getsockname/getpeername"
...
This reverts commit 6cd0e2664b .
This reverts commit 7a999a1376 .
This reverts commit f337595441 .
It turns out that on Windows, uv_pipe_getsockname() is a no-op for
client sockets. It slipped through testing because of a CI snafu.
PR-URL: https://github.com/nodejs/node/pull/2584
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-08-28 00:14:13 +02:00
Ben Noordhuis
6cd0e2664b
doc: update io.js reference
...
Commit f337595 ("lib,src: add unix socket getsockname/getpeername")
accidentally left in a reference to io.js v1.5.0 in the documentation.
Update it to say "Node.js v4.0.0", the upcoming release.
PR-URL: https://github.com/nodejs/node/pull/2580
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-08-27 18:00:55 +02:00
Ben Noordhuis
7a999a1376
lib: add net.Socket#localFamily property
...
Complements the existing net.Socket#remoteFamily property.
PR-URL: https://github.com/nodejs/node/pull/956
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-08-27 17:45:29 +02:00
Ben Noordhuis
f337595441
lib,src: add unix socket getsockname/getpeername
...
The implementation is a minor API change in that socket.address() now
returns a `{ address: '/path/to/socket' }` object, like it does for TCP
and UDP sockets. Before this commit, it returned `socket._pipeName`,
which is a string when present.
Change common.PIPE on Windows from '\\\\.\\pipe\\libuv-test' to
'\\\\?\\pipe\\libuv-test'. Windows converts the '.' to a '?' when
creating a named pipe, meaning that common.PIPE didn't match the
result from NtQueryInformationFile().
Fixes: https://github.com/nodejs/node/issues/954
PR-URL: https://github.com/nodejs/node/pull/956
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-08-27 17:45:04 +02:00
Ben Noordhuis
a43af39ffc
src: DRY getsockname/getpeername code
...
Extract the common logic into a template function. No functional
changes, just code cleanup.
PR-URL: https://github.com/nodejs/node/pull/956
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-08-27 17:44:15 +02:00
Сковорода Никита Андреевич
d6714ff1a4
doc: minor clarification in buffer.markdown
...
Replaced "contents is" with "contents are".
Added a note that initial Buffer contents could contain sensitive data.
PR-URL: https://github.com/nodejs/node/pull/2574
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-08-27 18:08:13 +03:00
Сковорода Никита Андреевич
87df7d3be3
crypto: Use OPENSSL_cleanse to shred the data.
...
memset() is not useful here, it's efficiently a noop.
PR-URL: https://github.com/nodejs/node/pull/2575
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2015-08-27 13:20:42 +03:00
Sakthipriyan Vairamani
bdef668881
test: handling failure cases properly
...
Refer: https://github.com/nodejs/io.js/issues/1543
When this test fails, it leaves dead processes in the system. This
patch makes sure that the child processes exit first, in case of
errors.
PR-URL: https://github.com/nodejs/node/pull/2206
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-08-27 11:35:23 +05:30
Alexis Campailla
34e25b2313
test: initial list of flaky tests
...
This poplulates the lists of flaky tests with tests that failed recently
in Jenkins.
PR-URL: https://github.com/nodejs/node/pull/2424
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: João Reis <reis@janeasystems.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-08-27 05:49:55 +02:00
Alexis Campailla
e822a4b783
test: pass args to test-ci via env variable
...
PR-URL: https://github.com/nodejs/node/pull/2424
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: João Reis <reis@janeasystems.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-08-27 05:49:46 +02:00
Alexis Campailla
6195b46ed8
test: support flaky tests in test-ci
...
Adding support for specifying flaky test mode to
the test runner:
- via an environment variable FLAKY_TESTS for Makefile
- via an argument ignore-flaky for vcbuild.bat
Ported from https://github.com/joyent/node/commit/2d2494cf140c38327218a087593ff2177a9d0ec9
PR-URL: https://github.com/nodejs/node/pull/2424
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: João Reis <reis@janeasystems.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-08-27 05:49:37 +02:00
Alexis Campailla
ff05953b8d
test: add test configuration templates
...
Template configuration files for marking tests as flaky.
PR-URL: https://github.com/nodejs/node/pull/2424
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: João Reis <reis@janeasystems.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-08-27 05:49:28 +02:00
Alexis Campailla
8c41b9a826
test: runner should return 0 on flaky tests
...
Make the test runner return a 0 exit code when only
flaky tests fail and --flaky-tests=dontcare is specified.
Ported from https://github.com/joyent/node/commit/a9b642cf5b539e1b86698465d3d0b941d84c5352
PR-URL: https://github.com/nodejs/node/pull/2424
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: João Reis <reis@janeasystems.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-08-27 05:49:18 +02:00
Alexis Campailla
c8caf8d616
test: runner support for flaky tests
...
Adding --flaky-tests option, to allow regarding flaky tests failures
as non-fatal.
Currently only observed by the TapProgressIndicator, which will
add a # TODO directive to tests classified as flaky. According to the
TAP specification, the test harness is supposed to treat failures
that have a # TODO directive as non-fatal.
Ported from https://github.com/joyent/node/commit/df3a2b2cf21274fe7afc19d14ec0259b964e13f7
PR-URL: https://github.com/nodejs/node/pull/2424
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: João Reis <reis@janeasystems.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-08-27 05:48:59 +02:00
Minwoo Jung
f55926a1f0
debugger: use strict equality comparison
...
There is no type-conversion to be done. Therefore, use the === operator.
PR-URL: https://github.com/nodejs/node/pull/2558
Reviewed-By: Rich Trott <rtrott@gmail.com >
2015-08-26 13:22:55 -07:00
Fedor Indutny
607bbd3166
http_parser: consume StreamBase instance
...
Consume StreamBase instance and operate on incoming data directly
without allocating Buffer instances. Improves performance.
PR-URL: https://github.com/nodejs/node/pull/2355
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-08-26 12:45:22 -07:00
Fedor Indutny
b266074347
env: introduce KickNextTick
...
There might be a need to "kick off" the next tick queue and execute
events on it. Normally it is done through the `MakeCallback` interface,
but in case when it is not - we need a way to "kick them off" manually.
PR-URL: https://github.com/nodejs/node/pull/2355
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-08-26 12:45:16 -07:00
Rich Trott
972a57cb20
test: make test-process-argv-0 robust
...
Remove use of STDERR to avoid test flakiness on CentOS 5.
Use parent process exit event for assertion rather than child exit
event.
PR-URL: https://github.com/nodejs/node/pull/2541
Fixes: https://github.com/nodejs/node/issues/2477
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2015-08-26 09:09:56 -07:00
Jeremiah Senkpiel
c95ca0ba5b
src: missing Exception::Error in node_http_parser
...
Fixes: 75adde07f9
PR-URL: https://github.com/nodejs/node/pull/2550
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-08-26 09:46:01 -04:00
Rod Vagg
b0962c38e3
doc: add @jasnell and @sam-github to release team
...
Fixes: https://github.com/nodejs/node/issues/2416
PR-URL: https://github.com/nodejs/node/pull/2455
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-08-26 21:07:24 +10:00
Rod Vagg
b6a4c0518f
doc: reorg release team to separate section
...
included:
* commands to run to import all active keys
* list of previous Node.js releasers key details
PR-URL: https://github.com/nodejs/node/pull/2455
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-08-26 21:07:15 +10:00
James M Snell
2e8bb62011
doc: fix bad merge on modules.markdown
...
My previous commit landed a bad merge on modules.markdown.
This fixes it.
2015-08-25 19:00:02 -07:00
James M Snell
09768e306c
doc: minor additional corrections and improvements
...
Per feedback from @thefourtheye: (a) improve word on the
description of the `close` event in stream.markdown and
(b) remove `[module section]: modules.html` from
globals.markdown
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:52 -07:00
James M Snell
758d02e4e9
doc: minor grammatical update in crypto.markdown
...
Per: https://github.com/joyent/node/pull/8878
Originally submitted by @jacksonhoose
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:47 -07:00
James M Snell
b11ba2791c
doc: minor grammatical update
...
Per: https://github.com/joyent/node/pull/9009
Originally submitted by @peerwit
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:42 -07:00
James M Snell
c58a63a18e
doc: remove repeated statement in globals.markdown
...
Per: https://github.com/joyent/node/pull/25102
Originally reported by @kuldipem
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:37 -07:00
James M Snell
ac0563f97d
doc: remove 'dudes' from documentation
...
per: https://github.com/joyent/node/pull/25572#discussion_r33197896
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:32 -07:00
James M Snell
a5b7852292
doc: update tense in child_process.markdown
...
per: https://github.com/joyent/node/pull/25826
originally submitted by: @ClimbsRocks
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:28 -07:00
James M Snell
89788dc347
doc: fixed worker.id type
...
per: https://github.com/joyent/node/pull/25459
originally submitted by @sonnyp
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:25 -07:00
James M Snell
c549c8b30c
doc: port is optional for socket.bind()
...
per: https://github.com/joyent/node/pull/25356
originally submitted by @dcousens
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:20 -07:00
James M Snell
281be6ce65
doc: fix minor types and grammar in fs docs
...
per: https://github.com/joyent/node/pull/7431
originally submitted by @linclark
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:13 -07:00
James M Snell
0679dcc9b7
doc: update parameter name in net.markdown
...
per: https://github.com/joyent/node/pull/7112
originally submitted by @Peekmo
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:09 -07:00