-
Notifications
You must be signed in to change notification settings - Fork 7.3k
cluster: rename worker.destroy() to worker.kill() again #4133
Comments
There is a couple of reasons however nothing solid.
In general the main decision I made in the cluster refactor was about "should this match It funny I remember having this discussion before, perhaps on IRC or in my head, who knows? |
@bnoordhuis @AndreasMadsen I have very little opinion on this, except that it'd be nice to not break backwards compatibility with 0.8. Maybe an alias? |
If it should be renamed then do the following:
Especially the |
Fix nodejs#4133, bringing the cluster worker API more in line with the child process API.
Security Update Notable items: * build: Add support for Microsoft Visual Studio 2015 * npm: Upgrade to v1.4.29 from v1.4.28. A special one-off release as part of the strategy to get a version of npm into Node.js v0.10.x that works with the current registry (nodejs/Release#37). This version of npm prints out a banner each time it is run. The banner warns that the next standard release of Node.js v0.10.x will ship with a version of npm v2. * openssl: Upgrade to 1.0.1q, containing fixes CVE-2015-3194 "Certificate verify crash with missing PSS parameter", a potential denial-of-service vector for Node.js TLS servers; TLS clients are also impacted. Details are available at <http://openssl.org/news/secadv/20151203.txt>. (Ben Noordhuis) nodejs#4133 PR-URL: nodejs-private/node-private#15
Security Update Notable items: * http: Fix a bug where an HTTP socket may no longer have a socket but a pipelined request triggers a pause or resume, a potential denial-of-service vector. (Fedor Indutny) * openssl: Upgrade to 1.0.1q, fixes CVE-2015-3194 "Certificate verify crash with missing PSS parameter", a potential denial-of-service vector for Node.js TLS servers; TLS clients are also impacted. Details are available at <http://openssl.org/news/secadv/20151203.txt>. (Ben Noordhuis) nodejs#4133 PR-URL: nodejs-private/node-private#13
Security Update Notable items: * http: Fix a bug where an HTTP socket may no longer have a socket but a pipelined request triggers a pause or resume, a potential denial-of-service vector. (Fedor Indutny) * openssl: Upgrade to 1.0.1q, fixes CVE-2015-3194 "Certificate verify crash with missing PSS parameter", a potential denial-of-service vector for Node.js TLS servers; TLS clients are also impacted. Details are available at <http://openssl.org/news/secadv/20151203.txt>. (Ben Noordhuis) nodejs#4133 PR-URL: https://github.com/nodejs/node-private/pull/13
It was renamed from kill() to destroy() in 5f08c3c for no apparent reason AFAICT.
To keep the mental disconnect with the child_process module as small as possible I want to name it (or alias as) kill() again.
/cc @AndreasMadsen
The text was updated successfully, but these errors were encountered: