Tobias Nießen
bb85fd6f5b
doc: add missing metadata for cluster.settings.cwd
...
PR-URL: https://github.com/nodejs/node/pull/19569
Refs: https://github.com/nodejs/node/pull/18399
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:52 +10:00
cjihrig
dc000a55d3
cluster: add cwd to cluster.settings
...
This commit allows cluster workers to be created with
configurable working directories.
Fixes: https://github.com/nodejs/node/issues/16388
PR-URL: https://github.com/nodejs/node/pull/18399
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2018-08-16 11:38:52 +10:00
Todd Wong
76805f0043
cluster: support windowsHide option for workers
...
Fixes: https://github.com/nodejs/node/issues/17370
PR-URL: https://github.com/nodejs/node/pull/17412
Fixes: https://github.com/nodejs/node/issues/17370
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:52 +10:00
Yosuke Furukawa
7c43099d1e
http, http2: add 103 Early Hints status code
...
PR-URL: https://github.com/nodejs/node/pull/16644
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2018-08-16 11:38:52 +10:00
Refael Ackermann
9a9ea0d756
test: bypass dns for IPv6 net tests
...
Backport-PR-URL: https://github.com/nodejs/node/pull/21736
PR-URL: https://github.com/nodejs/node/pull/16976
Refs: https://github.com/nodejs/node/pull/16248
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2018-08-16 11:38:52 +10:00
Gabriel Schulhof
7033bbaa01
n-api: throw when entry point is null
...
Backport-PR-URL: https://github.com/nodejs/node/pull/21732
PR-URL: https://github.com/nodejs/node/pull/20779
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-08-16 11:38:52 +10:00
Mark S. Everitt
1cf17df769
tls: accept array of protocols in TLSSocket
...
Brings the ALPNProtocols & NPNProtocols options of TLSSocket in line
with the documentation. i.e. an array of strings for protocols may be
used, not only a buffer.
Backport-PR-URL: https://github.com/nodejs/node/pull/21721
PR-URL: https://github.com/nodejs/node/pull/16655
Fixes: https://github.com/node/issues/16643
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
2018-08-16 11:38:52 +10:00
Santiago Gimeno
d0588f151d
test: fix flaky http-client-timeout-agent
...
Close the connection immediately after receiving the `end` event to
avoid that the `timeout` event is fired before the connection closes
gracefully.
Move the test back to parallel.
PR-URL: https://github.com/nodejs/node/pull/19856
Fixes: https://github.com/nodejs/node/issues/19804
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2018-08-16 11:38:52 +10:00
Rich Trott
1e25f00353
test: move http-client-timeout-agent to sequential
...
Move resource-sensitive test from parallel to sequential.
Fixes: https://github.com/nodejs/node/issues/19804
PR-URL: https://github.com/nodejs/node/pull/19809
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:52 +10:00
James M Snell
eaf99d9393
src: add node_encoding.cc
...
Continue moving bits of code out of node.cc ... add node_encoding.cc
as a home for `ParseEncoding` and related functions.
Backport-PR-URL: https://github.com/nodejs/node/pull/21798
PR-URL: https://github.com/nodejs/node/pull/21112
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2018-08-16 11:38:52 +10:00
James M Snell
0321afed4c
src: add node_process.cc
...
Begin moving `process` object function definitions out of
`node.cc` ... continuing the process of making `node.cc`
smaller and easier to maintain.
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Backport-PR-URL: https://github.com/nodejs/node/pull/21798
PR-URL: https://github.com/nodejs/node/pull/21105
2018-08-16 11:38:52 +10:00
James M Snell
54ea1ccf2d
src: refactor bootstrap to use bootstrap object
...
Backport-PR-URL: https://github.com/nodejs/node/pull/21798
PR-URL: https://github.com/nodejs/node/pull/20917
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
2018-08-16 11:38:52 +10:00
Kenny Yuan
4911c4e9fa
n-api: improve runtime perf of n-api func call
...
Added a new struct CallbackBundle to eliminate all
GetInternalField() calls.
The principle is to store all required data inside a C++ struct,
and then store the pointer in the JavaScript object. Before this
change, the required data are stored in the JavaScript object in
3 or 4 seperate pointers. For every napi fun call, 3 of them
have to be fetched out, which are 3 GetInternalField() calls;
after this change, the C++ struct will be directly fetched out
by using v8::External::Value(), which is faster.
Profiling data show that GetInternalField() is slow.
On an i7-4770K (3.50GHz) box, a C++ V8-binding fun call is 8 ns,
before this change, napi fun call is 36 ns; after this change,
napi fun call is 20 ns.
The above data are measured using a modified benchmark in
'benchmark/misc/function_call'. The modification adds an indicator
of the average time of a "chatty" napi fun call (max 50M runs).
This change will speed up chatty case 1.8x (overall), and will cut
down the delay of napi mechanism to approx. 0.5x.
Background: a simple C++ binding function (e.g. receiving little
from JS, doing little and returning little to JS) is called
'chatty' case for JS<-->C++ fun call routine.
This improvement also applies to getter/setter fun calls.
Backport-PR-URL: https://github.com/nodejs/node/pull/21733
PR-URL: https://github.com/nodejs/node/pull/21072
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com >
2018-08-16 11:38:52 +10:00
Rich Trott
0517cd8504
test: fix test-cluster-send-handle-large-payload
...
test-cluster-send-handle-large-payload is susceptible to failure if it
is competing for resources. Move to `sequential` directory so it is not
competing with other tests.
Fixes: https://github.com/nodejs/node/issues/14844
PR-URL: https://github.com/nodejs/node/pull/19311
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
2018-08-16 11:38:52 +10:00
Luigi Pinca
1fc00f0821
http: do not rely on the 'agentRemove' event
...
Do not use the `'agentRemove'` event to null `socket._httpMessage` as
that event is public and can be used to not keep a request in the agent.
Backport-PR-URL: https://github.com/nodejs/node/pull/20786
PR-URL: https://github.com/nodejs/node/pull/20786
Fixes: https://github.com/nodejs/node/issues/20690
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
2018-08-16 11:38:52 +10:00
Anna Henningsen
ffb72f810e
deps: cherry-pick 09b53ee from upstream V8
...
Original commit message:
[api] Make running scripts in AddMessageListener callback work in debug mode
The existance of an `AllowJavascriptExecutionDebugOnly` scope in
`Isolate::ReportPendingMessages()` indicates that the API supports
running arbitrary JS code in a `AddMessageListener` callback.
Currently, this can fail in debug mode: The
`!isolate->external_caught_exception()` condition is checked when
entering API methods inside such a handler. However, if there is
a verbose `TryCatch` active when the exception occurs, this
check fails, and when calling `ToString()` on the exception object
leaves a pending exception itself, the flag is re-set to `true`.
Fix this problem by clearing the flag and the pending exception if
there was one during `ToString()`. This matches the code a few lines
up in `messages.cc`, so the exception state is now consistent
during the callback.
This currently makes a Node.js test fail in debug mode
(`parallel/test-error-reporting`).
Bug: node:7144
Bug: node:17016
Change-Id: I060d00fea3e9a497f4df34c6ff8d6e29ebe96321
Reviewed-on: https://chromium-review.googlesource.com/718096
Commit-Queue: Yang Guo <yangguo@chromium.org >
Reviewed-by: Yang Guo <yangguo@chromium.org >
Cr-Commit-Position: refs/heads/master@{#49466}
Refs: https://github.com/v8/v8/commit/09b53eef4ca65a48e74fe0b199b2ee892a4321ed
PR-URL: https://github.com/nodejs/node/pull/21767
Refs: https://github.com/v8/v8/commit/09b53eef4ca65a48e74fe0b199b2ee892a4321ed
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2018-08-16 11:38:52 +10:00
cjihrig
6f545d1902
src: fix compiler warning in process.ppid
...
This commit fixes a compiler warning with SetAccessor() by
passing in the context.
Backport-PR-URL: https://github.com/nodejs/node/pull/21760
PR-URL: https://github.com/nodejs/node/pull/16958
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
2018-08-16 11:38:52 +10:00
Ben Noordhuis
abcc9119d2
build: fix rm commands in tarball rule
...
The `$(RM) {foo,bar,baz}` rules don't seem to work with GNU make 4.1.
Write them out in full and get rid of a few overlong lines in the
process.
Backport-PR-URL: https://github.com/nodejs/node/pull/21738
PR-URL: https://github.com/nodejs/node/pull/18332
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Jon Moss <me@jonathanmoss.me >
2018-08-16 11:38:52 +10:00
Anna Henningsen
9125e2b6fa
src: add convenience ctor for async trigger id scope
...
This backport differs from the original only in the
omission of a change to `stream_base-inl.h` which
would have generated conflicts.
Backport-PR-URL: https://github.com/nodejs/node/pull/21600
PR-URL: https://github.com/nodejs/node/pull/19204
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
2018-08-16 11:38:52 +10:00
Anna Henningsen
2ee4bb7826
src: move Environment ctor/dtor into env.cc
...
This makes it easier to use methods from other headers
in the constructor and destructor.
Backport-PR-URL: https://github.com/nodejs/node/pull/21599
PR-URL: https://github.com/nodejs/node/pull/19202
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
8053474679
test: add http2/tls destroy regression test
...
Test part of 0c25cdf39a ,
specifically for v8.x.
PR-URL: https://github.com/nodejs/node/pull/21598
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2018-08-16 11:38:51 +10:00
Ali Ijaz Sheikh
8e0f28b8f0
deps: V8: backport 49712d8a from upstream
...
Original commit message:
[wasm] Call AsyncInstantiate directly when instantiating a module object
WebAssembly.instantiate is polymorphic, it can either take a module
object as parameter, or a buffer source which should be compiled first.
To share code between the two implementations, the module object was
first passed to a promise (i.e. which is the result of compilation).
However, passing the module object to a promise has a side effect if
the module object has a then function. To avoid this side effect I
remove this code sharing and call AsyncInstantiate directly in case
the parameter is a module object.
R=mstarzinger@chromium.org
Bug: chromium:836141
Change-Id: I67b76d0d7761c5aeb2cf1deda45b6842e494eed4
Reviewed-on: https://chromium-review.googlesource.com/1025774
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org >
Commit-Queue: Andreas Haas <ahaas@chromium.org >
Cr-Commit-Position: refs/heads/master@{#52755}
PR-URL: https://github.com/nodejs/node/pull/21334
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2018-08-16 11:38:51 +10:00
Ben Smith
ed0d939dbc
test: remove --harmony-sharedarraybuffer usage
...
This flag has been enabled by default since v8
7662e0634c3a057fa5d746912ee5af76e285c274.
Backport-PR-URL: https://github.com/nodejs/node/pull/21717
PR-URL: https://github.com/nodejs/node/pull/16343
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2018-08-16 11:38:51 +10:00
Anna Henningsen
0f45ecb68c
test: add http _dump regression test
...
Test part of 299da1f503 , specifically for v8.x.
PR-URL: https://github.com/nodejs/node/pull/21595
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2018-08-16 11:38:51 +10:00
Michael Dawson
8f5e9916d1
async_wrap: fix memory leak in AsyncResource
...
Reset the persistent that keeps the resource
Object alive when the AsyncResource is being
destroyed.
Fixes: https://github.com/nodejs/node-addon-api/issues/237
PR-URL: https://github.com/nodejs/node/pull/20668
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:51 +10:00
Michael Dawson
4709734cfc
doc: cleanup n-api.md doc
...
Partial doc cleanup as per
https://github.com/nodejs/node/issues/20421
PR-URL: https://github.com/nodejs/node/pull/20430
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:51 +10:00
Rich Trott
6d3cbcbb13
test: make test-error-reporting engine agnostic
...
Remove or modify checks in test-error-reporting that only apply to V8
and not to ChakraCore.
PR-URL: https://github.com/nodejs/node/pull/16272
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2018-08-16 11:38:51 +10:00
SheetJS
e1a7244fbd
doc: Uint8Array support in Buffer functions
...
Buffer.from / new Buffer accept Uint8Array
Fixes: https://github.com/nodejs/node/issues/14118
Backport-PR-URL: https://github.com/nodejs/node/pull/21590
PR-URL: https://github.com/nodejs/node/pull/19949
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
2018-08-16 11:38:51 +10:00
Rich Trott
3ad5e30e05
doc: remove ES6/ECMAScript 2015 from buffer.md
...
As the introduction of ES6 features recedes further into the past, it
is less and less relevant (and more and more distracting) to cite it in
documentation text. Remove mention in buffer.md.
Backport-PR-URL: https://github.com/nodejs/node/pull/21590
PR-URL: https://github.com/nodejs/node/pull/19685
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-08-16 11:38:51 +10:00
Ali Ijaz Sheikh
efe28b8581
deps: V8: fix bug in InternalPerformPromiseThen
...
This fix never landed upstream as it was not longer relevant to active
V8 branches for Chromium.
Original commit message:
[turbofan] Fix bug in InternalPerformPromiseThen
Bug: chromium:831170
Change-Id: I1022fc360aafdfd392d6781eb50afc87a18096fd
PR-URL: https://github.com/nodejs/node/pull/21426
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2018-08-16 11:38:51 +10:00
Ali Ijaz Sheikh
9aeffab452
deps: V8: cherry-pick 8361fa58 from upstream
...
Original commit message:
[runtime] Fix derived class instantiation
Bug: chromium:806388
Change-Id: Ieb343f0d532c16b6102e85222b77713f23bacf8c
Reviewed-on: https://chromium-review.googlesource.com/894942
Reviewed-by: Igor Sheludko <ishell@chromium.org >
Commit-Queue: Camillo Bruni <cbruni@chromium.org >
Cr-Commit-Position: refs/heads/master@{#50990}
PR-URL: https://github.com/nodejs/node/pull/21294
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2018-08-16 11:38:51 +10:00
Ashok
b1110b22b4
test: fix test when NODE_OPTIONS env var is set to --trace-warnings
...
PR-URL: https://github.com/nodejs/node/pull/20027
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
29b5d3999e
lib: re-fix v8_prof_processor
...
Make the script not error out immediately because of a missing
pseudo-global.
(Note that it seems like tests are still broken on `master`.)
PR-URL: https://github.com/nodejs/node/pull/19059
Fixes: https://github.com/nodejs/node/issues/19044
Refs: https://github.com/nodejs/node/pull/18623
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Matheus Marchini <matheus@sthima.com >
Reviewed-By: Minwoo Jung <minwoo@nodesource.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-08-16 11:38:51 +10:00
Myles Borins
2702fd779e
lib: replace eval with vm.runInThisContext
...
PR-URL: https://github.com/nodejs/node/pull/18623
Refs: https://github.com/nodejs/node/pull/18212#pullrequestreview-94616927
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-08-16 11:38:51 +10:00
Anna Henningsen
f0f44f69a6
test: check TTY mode reset on exit
...
Before PR 20592, closing all handles associated with the main
event loop would also mean that `uv_tty_reset_mode()`
can’t function properly because the corresponding FDs have
already been closed.
Add regression tests for this condition.
Refs: https://github.com/nodejs/node/issues/21020
Refs: https://github.com/nodejs/node/pull/20592
PR-URL: https://github.com/nodejs/node/pull/21027
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
342dbff852
src: make AsyncResource destructor virtual
...
`AsyncResource` is intended to be a base class, and since we don’t
know what API consumers will do with it in their own code,
it’s good practice to make its destructor virtual.
This should not be ABI-breaking since all class methods are inline.
PR-URL: https://github.com/nodejs/node/pull/20633
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-08-16 11:38:51 +10:00
Mathias Buus and Matteo Collina
87818dc8bc
http2: destroy the socket properly and add tests
...
Fix a bug where the socket wasn't being correctly destroyed and
adjust existing tests, as well as add additional tests.
PR-URL: https://github.com/nodejs/node/pull/19852
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Co-authored-by: Matteo Collina <matteo.collina@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
71ee19e064
test: plug AliasedBuffer cctest memory leak
...
No need to heap-allocate values here.
PR-URL: https://github.com/nodejs/node/pull/20665
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
b916620bf5
src: fix typo in util.h comment
...
PR-URL: https://github.com/nodejs/node/pull/20656
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
8076a793ed
src: fix nullptr dereference for signal during startup
...
This fixes a test failure when running
`test/parallel/test-child-process-spawnsync-kill-signal.js`
under load. What would happen is that `SignalExit()` tries
to shutdown the tracing agent, which might not have been set
up by the point that Node.js receives the signal.
PR-URL: https://github.com/nodejs/node/pull/20637
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2018-08-16 11:38:51 +10:00
Anna Henningsen
1cb9772a40
src: remove unused freelist.h header
...
Always easy enough to re-introduce if we do need it.
PR-URL: https://github.com/nodejs/node/pull/20544
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Matheus Marchini <matheus@sthima.com >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
2018-08-16 11:38:51 +10:00
Daniel Bevenius
de51a83e58
http2: remove unused using declarations node_http2
...
PR-URL: https://github.com/nodejs/node/pull/20420
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-08-16 11:38:51 +10:00
Ulan Degenbaev
e17f05a817
src: create per-isolate strings after platform setup
...
Allocation of strings may cause a garbage collection that uses
the platform to post tasks.
PR-URL: https://github.com/nodejs/node/pull/20175
Fixes: https://github.com/nodejs/node/issues/20171
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yang Guo <yangguo@chromium.org >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
bf09b7a155
tools: treat SIGABRT as crash
...
Otherwise, potentially no output is shown for aborts.
PR-URL: https://github.com/nodejs/node/pull/19990
Refs: https://github.com/nodejs/node/issues/19903
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
3c6464a4f4
test: add regression test for large write
...
Fixes: https://github.com/nodejs/node/issues/19562
PR-URL: https://github.com/nodejs/node/pull/19551
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
d38ccbb07f
src: use unordered_map for perf marks
...
PR-URL: https://github.com/nodejs/node/pull/19558
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-16 11:38:51 +10:00
Anna Henningsen
553e34ef9c
src: simplify http2 perf tracking code
...
Use `unique_ptr`s and use the resulting simplification to
reduce indentation in these functions.
PR-URL: https://github.com/nodejs/node/pull/19470
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2018-08-16 11:38:51 +10:00
Anna Henningsen
a29cd25b41
http2: refer to stream errors by name
...
Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.
PR-URL: https://github.com/nodejs/node/pull/18966
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Minwoo Jung <minwoo@nodesource.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2018-08-16 11:38:51 +10:00
Anna Henningsen
21cdb73d67
test: allow running with NODE_PENDING_DEPRECATION
...
Make the test for pending deprecations work when the env var
is set during the whole test suite run.
PR-URL: https://github.com/nodejs/node/pull/18991
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Matheus Marchini <matheus@sthima.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-08-16 11:38:51 +10:00
Anna Henningsen
3d38bab64e
net: use _final instead of on('finish')
...
Shutting down the connection is what `_final` is there for.
PR-URL: https://github.com/nodejs/node/pull/18608
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2018-08-16 11:38:51 +10:00