aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-08-19 12:30:29 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-08-19 14:24:42 +0900
commit3733ace20b06f69e11b34a714a266306813616e9 (patch)
treeae9691e6b3ae4f17e157e3adfc453157d2a61f61 /test/utils.rb
parent20a88ace0778282d5ee564842023c78e4a2e9399 (diff)
downloadruby-openssl-3733ace20b06f69e11b34a714a266306813616e9.tar.gz
test/test_ssl: fix failure on Windows
Due to the difference in error handling, the error raised by SSLSocket#connect may differ.
Diffstat (limited to 'test/utils.rb')
-rw-r--r--test/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils.rb b/test/utils.rb
index 1237a511..5de26601 100644
--- a/test/utils.rb
+++ b/test/utils.rb
@@ -284,7 +284,7 @@ AQjjxMXhwULlmuR/K+WwlaZPiLIBYalLAZQ7ZbOPeVkJ8ePao0eLAgEC
return
end
ssl = ssls.accept
- rescue OpenSSL::SSL::SSLError
+ rescue OpenSSL::SSL::SSLError, Errno::ECONNRESET
if ignore_listener_error
retry
else