Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
indutny committed Jan 9, 2017
commit caa7ba1e5d73f92126e8e064af34692fb9eb0478
3 changes: 1 addition & 2 deletions test/parallel/test-tls-starttls-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ const server = net.createServer(common.mustCall((s) => {
}),

SNICallback: common.mustCall((hostname, callback) => {
assert.equal(hostname, 'test.test');
assert.deepEqual(hostname, 'test.test');

callback(null, null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From https://github.com/nodejs/node/blob/master/doc/api/tls.md#tlscreateserveroptions-secureconnectionlistener

SNICallback should invoke cb(null, ctx), where ctx is a SecureContext instance.

Is (null, null) valid? Should it be valid?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is valid and it should be valid.

})
});

tlsSocket.on('secure', common.mustCall(() => {
console.log('hello');
tlsSocket.end();
server.close();
}));
Expand Down