This repository was archived by the owner on Jul 6, 2018. It is now read-only.

Description
It seems the TLS socket is initialized as tls.connect(port, host, options) in http2.connect. Some existing HTTP2 servers require some TLS options to set up the connection properly. More specifically:
- servername (for Server Name Indication)
- ALPN / NPN, specifying 'h2'
I believe those should be set by defaults, then passing a URL string will just work.
Also, maybe it's better to use secureConnect event instead of connect event for the TLS sockets for setting up a session -- so that it won't go into the session if some TLS setup failure happens.