| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dae9fae commit 503f279
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -605,14 +605,14 @@ established after addition of event listener. | |||
| 605 | 605 | ||
| 606 | 606 | Here's an example for using TLS session resumption: | |
| 607 | 607 | ||
| 608 | - var tlsSessionStore = {}; | ||
| 609 | - server.on('newSession', function(id, data, cb) { | ||
| 610 | - tlsSessionStore[id.toString('hex')] = data; | ||
| 611 | - cb(); | ||
| 612 | - }); | ||
| 613 | - server.on('resumeSession', function(id, cb) { | ||
| 614 | - cb(null, tlsSessionStore[id.toString('hex')] || null); | ||
| 615 | - }); | ||
| 608 | + var tlsSessionStore = {}; | ||
| 609 | + server.on('newSession', function(id, data, cb) { | ||
| 610 | + tlsSessionStore[id.toString('hex')] = data; | ||
| 611 | + cb(); | ||
| 612 | + }); | ||
| 613 | + server.on('resumeSession', function(id, cb) { | ||
| 614 | + cb(null, tlsSessionStore[id.toString('hex')] || null); | ||
| 615 | + }); | ||
| 616 | 616 | ||
| 617 | 617 | ### Event: 'OCSPRequest' | |
| 618 | 618 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments