diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-11-20 03:08:48 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-11-20 14:59:57 +0900 |
commit | 6a45cbe8b0b640737e14c44454f675a795bd37fe (patch) | |
tree | d4303be7e16768d1fe7fd684b2e949205b56d18b /test/openssl/test_hmac.rb | |
parent | e6720063c6503ba273674735703c5aa3591beef3 (diff) | |
download | ruby-topic/net-http-unstarted-sslsocket.tar.gz |
net/http: avoid reading/writing from unstarted SSL sockettopic/net-http-unstarted-sslsocket
This is currently done when net/http connects to an HTTPS server through
a CONNECT proxy.
OpenSSL::SSL::SSLSocket traditionally forwards to a method call to the
underlying IO object if an IO-ish method is called before the TLS
connection is established on it.
So it is working correctly, but this is not obvious at first glance.
Let's avoid the behavior. This will also eliminates the warning "SSL
session not started yet" that appears on $VERBOSE.
Diffstat (limited to 'test/openssl/test_hmac.rb')
0 files changed, 0 insertions, 0 deletions