Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

TLS server event newSession not fired for TLSv1 client #5853

@bajtos

Description

@bajtos

When connecting to a node TLS server with a node TLS client, the server does not fire newSession event.

Forcing the client to use SSLv3 instead of default TLSv1 resolves the issue:

  var opts = {
      port: port,
      secureProtocol: 'SSLv3_method',
      session: session /* undefined for the first request */
    };

  var conn = tls.connect(opts, function() { /* ... */ });

The full code to reproduce the problem can be found here: https://gist.github.com/bajtos/6000596

A side note: when connecting to node TLS server with openssl s_client --reconnect --connect, openssl v0.9.8x (OSX default) crashes on the second connection. Disabling TLSv1 removes the crash.

/cc @isaacs @indutny @bnoordhuis @piscisaureus

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions