diff --git a/Makefile b/Makefile index 7fa645f21dd9c9..89cd8f68885865 100644 --- a/Makefile +++ b/Makefile @@ -98,13 +98,12 @@ help: ## Print help for targets with comments. # and recreated which can break the addons build when running test-ci # See comments on the build-addons target for some more info ifeq ($(BUILD_WITH), make) -$(NODE_EXE): config.gypi out/Makefile - $(MAKE) -C out BUILDTYPE=Release V=$(V) - if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/Release/$(NODE_EXE) $@; fi - -$(NODE_G_EXE): config.gypi out/Makefile - $(MAKE) -C out BUILDTYPE=Debug V=$(V) - if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/Debug/$(NODE_EXE) $@; fi +$(NODE_EXE): build_type:=Release +$(NODE_G_EXE): build_type:=Debug +$(NODE_EXE) $(NODE_G_EXE): config.gypi out/Makefile + $(MAKE) -C out BUILDTYPE=${build_type} V=$(V) + if [ ! -r $@ -o ! -L $@ ]; then \ + ln -fs out/${build_type}/$(NODE_EXE) $@; fi else ifeq ($(BUILD_WITH), ninja) ifeq ($(V),1) diff --git a/doc/api/dns.md b/doc/api/dns.md index 909d237f6777b9..b02ee8b608d5bf 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -10,9 +10,8 @@ addresses of host names. Although named for the [Domain Name System (DNS)][], it does not always use the DNS protocol for lookups. [`dns.lookup()`][] uses the operating system facilities to perform name resolution. It may not need to perform any network -communication. Developers looking to perform name resolution in the same way -that other applications on the same operating system behave should use -[`dns.lookup()`][]. +communication. To perform name resolution the way other applications on the same +system do, use [`dns.lookup()`][]. ```js const dns = require('dns'); @@ -26,9 +25,8 @@ dns.lookup('example.org', (err, address, family) => { All other functions in the `dns` module connect to an actual DNS server to perform name resolution. They will always use the network to perform DNS queries. These functions do not use the same set of configuration files used by -[`dns.lookup()`][] (e.g. `/etc/hosts`). These functions should be used by -developers who do not want to use the underlying operating system's -facilities for name resolution, and instead want to always perform DNS queries. +[`dns.lookup()`][] (e.g. `/etc/hosts`). Use these functions to always perform +DNS queries, bypassing other name-resolution facilities. ```js const dns = require('dns'); @@ -1201,6 +1199,6 @@ uses. For instance, _they do not use the configuration from `/etc/hosts`_. [DNS error codes]: #dns_error_codes [Domain Name System (DNS)]: https://en.wikipedia.org/wiki/Domain_Name_System [Implementation considerations section]: #dns_implementation_considerations -[RFC 8482]: https://tools.ietf.org/html/rfc8482 [RFC 5952]: https://tools.ietf.org/html/rfc5952#section-6 +[RFC 8482]: https://tools.ietf.org/html/rfc8482 [supported `getaddrinfo` flags]: #dns_supported_getaddrinfo_flags diff --git a/doc/api/fs.md b/doc/api/fs.md index 6b1c158b75a66c..a2dbdcc668b0f2 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -284,7 +284,7 @@ synchronous use libuv's threadpool, which can have surprising and negative performance implications for some applications. See the [`UV_THREADPOOL_SIZE`][] documentation for more information. -## Class `fs.Dir` +## Class: `fs.Dir` @@ -4440,7 +4440,7 @@ The `fs.promises` API provides an alternative set of asynchronous file system methods that return `Promise` objects rather than using callbacks. The API is accessible via `require('fs').promises` or `require('fs/promises')`. -### class: `FileHandle` +### Class: `FileHandle` diff --git a/doc/api/http.md b/doc/api/http.md index b48874c9fcec21..93390c9b35fa63 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -300,6 +300,16 @@ added: v0.3.6 By default set to `Infinity`. Determines how many concurrent sockets the agent can have open per origin. Origin is the returned value of [`agent.getName()`][]. +### `agent.maxTotalSockets` + + +* {number} + +By default set to `Infinity`. Determines how many concurrent sockets the agent +can have open. Unlike `maxSockets`, this parameter applies across all origins. + ### `agent.requests` + +* {string} The request method. + +### `request.host` + + +* {string} The request host. + +### `request.protocol` + + +* {string} The request protocol. + ### `request.removeHeader(name)`