-
Notifications
You must be signed in to change notification settings - Fork 79
a better default configuration for TLS connection of http2 #59
Comments
The |
I think you're talking about the servers, but I was talking about the clients (sorry I wasn't clear). The http2 client sockets are initialized around https://github.com/nodejs/http2/blob/master/lib/internal/http2/core.js#L1238 but no ALPN/NPN are specified yet, if I understand correctly. SNI can be specified through |
Ok. I'll verify shortly and will make the sni change. Thank you! |
It seems the TLS socket is initialized as
tls.connect(port, host, options)
inhttp2.connect
. Some existing HTTP2 servers require some TLS options to set up the connection properly. More specifically: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 ofconnect
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.The text was updated successfully, but these errors were encountered: