GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http,tls: name anonymous callbacks · nodejs/node@1ca46ab

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • _http_outgoing.js
    • _tls_common.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/_http_outgoing.js‎

Copy file name to clipboardExpand all lines: lib/_http_outgoing.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ OutgoingMessage.prototype.setTimeout = function setTimeout(msecs, callback) {
183183
}
184184

185185
if (!this.socket) {
186-
this.once('socket', function(socket) {
186+
this.once('socket', function socketSetTimeoutOnConnect(socket) {
187187
socket.setTimeout(msecs);
188188
});
189189
} else {
@@ -200,7 +200,7 @@ OutgoingMessage.prototype.destroy = function destroy(error) {
200200
if (this.socket) {
201201
this.socket.destroy(error);
202202
} else {
203-
this.once('socket', function(socket) {
203+
this.once('socket', function socketDestroyOnConnect(socket) {
204204
socket.destroy(error);
205205
});
206206
}
Collapse file

‎lib/_tls_common.js‎

Copy file name to clipboardExpand all lines: lib/_tls_common.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ exports.translatePeerCertificate = function translatePeerCertificate(c) {
240240
c.infoAccess = Object.create(null);
241241

242242
// XXX: More key validation?
243-
info.replace(/([^\n:]*):([^\n]*)(?:\n|$)/g, function(all, key, val) {
243+
info.replace(/([^\n:]*):([^\n]*)(?:\n|$)/g, (all, key, val) => {
244244
if (key in c.infoAccess)
245245
c.infoAccess[key].push(val);
246246
else

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.