aboutsummaryrefslogtreecommitdiffstats
path: root/golf_prelude.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-11-20 03:08:48 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-11-20 14:59:57 +0900
commit6a45cbe8b0b640737e14c44454f675a795bd37fe (patch)
treed4303be7e16768d1fe7fd684b2e949205b56d18b /golf_prelude.rb
parente6720063c6503ba273674735703c5aa3591beef3 (diff)
downloadruby-6a45cbe8b0b640737e14c44454f675a795bd37fe.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 'golf_prelude.rb')
0 files changed, 0 insertions, 0 deletions