Closed skierkowski closed 2 years ago
That's what I need!
I need it as well. Without it I get the following error:
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: tlsv1 alert internal error)
The reason is that hostname verification is enabled in OpenSSL by default, which requires the hostname attribute to be set on OpenSSL::SSL::SSLSocket
before the connect
method is called.
@skierkowski This repository was moved ruby-jp/websocket-client-simple. If you still need this, make pull request or issue to ruby-jp/websocket-client-simple again, thx.
(But we need this patch. We will make a new release including this patch soon maybe.)
In order for the SSL Socket to work with SNI the hostname has to be set on the socket.
More info: http://stackoverflow.com/a/34153381