-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_tls_wrap: Migrate the errors to internal/errors #17709 #17792
Conversation
doc/api/errors.md
Outdated
### ERR_TLS_RENEGOTIATION_DISABLED | ||
|
||
This errors is triggered when attempts are made to renegotiate TLS on a socket | ||
instance which has TLS disabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is not quite accurate. Perhaps:
Triggered when an attempt is made to renegotiate the secure configuration on a TLS
socket after renegotiation has been disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with other error descriptions, this should start with An attempt was made...
This migrates the old style error messages to use internal/errors.js Fixes: nodejs#17709
This commit follows the previous commit. Tested Linting and added this commit Fixes: nodejs#17709
This migrates the old style error messages to use internal/errors.js Fixes: nodejs#17709
This commit follows the previous commit. Tested Linting and added this commit Fixes: nodejs#17709
…TIATION_DISABLED This commit paraphrases the error message corresponding to the ERR_TLS_RENEGOTIATION_DISABLED key, so as to ensure consistency with the other error messages. Fixes: nodejs#17709
d2e16af
to
55dabaf
Compare
@jasnell I have paraphrased the message. Please let me know if this works :) |
doc/api/errors.md
Outdated
<a id="ERR_TLS_RENEGOTIATION_DISABLED"></a> | ||
### ERR_TLS_RENEGOTIATION_DISABLED | ||
|
||
An attempt was made to renegotiate TLS on a socket instance with TLS disabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny tiny nit: there is an extra space before disabled
;)
Remove the extra space in the message corresponding to the key ERR_TLS_RENEGOTIATION_DISABLED . Fixes: nodejs#17709
Landed in 79261f3, thanks for the contribution and welcome to Node.js! |
This migrates the old style error in _tls_wrap.js to the new style error ERR_TLS_RENEGOTIATION_DISABLED. Refs: #17709 PR-URL: #17792 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Refs: #17709
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
The
doc/api/errors.md
file has been modified to include theERR_TLS_RENEGOTIATION_DISABLED
error .Also, modified the files
lib/_tls_wrap.js
,lib/internal/errors.js
,test/parallel/test-tls-disable-renegotiation.js
so as to add theERR_TLS_RENEGOTIATION_DISABLED
error