Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3f1787b

Browse filesBrowse files
danbevBridgeAR
authored andcommitted
crypto: add debug info client emit secureConnect
Currently, when debugging a TLS connection there might be multiple debug statements 'client emit secureConnect' for the 'secureConnect` event when using NODE_DEBUG='tls'. While it is possible to step through this with a debugger that is not always the fastest/easiest to do if debugging remote code. This commit adds some additional information to the debug statements to make it easier to distinguish where the debug statements are coming from. PR-URL: #28067 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent d1c53fc commit 3f1787b
Copy full SHA for 3f1787b

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Open diff view settings
Collapse file

‎lib/_tls_wrap.js‎

Copy file name to clipboardExpand all lines: lib/_tls_wrap.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,12 +1335,14 @@ function onConnectSecure() {
13351335
this.destroy(verifyError);
13361336
return;
13371337
} else {
1338-
debug('client emit secureConnect');
1338+
debug('client emit secureConnect. rejectUnauthorized: %s, ' +
1339+
'authorizationError: %s', options.rejectUnauthorized,
1340+
this.authorizationError);
13391341
this.emit('secureConnect');
13401342
}
13411343
} else {
13421344
this.authorized = true;
1343-
debug('client emit secureConnect');
1345+
debug('client emit secureConnect. authorized:', this.authorized);
13441346
this.emit('secureConnect');
13451347
}
13461348

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.