internethakai 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +3 -0
- data/lib/internethakai.rb +1 -1
- data/lib/internethakai/hakairev/http_client.rb +2 -2
- data/lib/internethakai/main.rb +1 -1
- metadata +2 -2
data/CHANGES
CHANGED
data/lib/internethakai.rb
CHANGED
|
@@ -374,7 +374,7 @@ module InternetHakai
|
|
|
374
374
|
@_ssl_init.call
|
|
375
375
|
ssl_init_complete
|
|
376
376
|
rescue Rev::SSL::IO::ReadAgain
|
|
377
|
-
|
|
377
|
+
return
|
|
378
378
|
rescue Rev::SSL::IO::WriteAgain
|
|
379
379
|
return
|
|
380
380
|
rescue OpenSSL::SSL::SSLError, Errno::ECONNRESET, Errno::EPIPE
|
|
@@ -407,7 +407,7 @@ module InternetHakai
|
|
|
407
407
|
on_read @_ssl_socket.read_nonblock(Rev::IO::INPUT_SIZE)
|
|
408
408
|
rescue Errno::EAGAIN, Rev::SSL::IO::ReadAgain
|
|
409
409
|
return
|
|
410
|
-
rescue OpenSSL::SSL::SSLError, Errno::ECONNRESET, EOFError
|
|
410
|
+
rescue OpenSSL::SSL::SSLError, Errno::EPIPE, Errno::ECONNRESET, EOFError
|
|
411
411
|
close
|
|
412
412
|
end
|
|
413
413
|
end
|
data/lib/internethakai/main.rb
CHANGED
|
@@ -74,7 +74,7 @@ module InternetHakai
|
|
|
74
74
|
opts.on("--test", "exec in testmode") do
|
|
75
75
|
@test = true
|
|
76
76
|
end
|
|
77
|
-
opts.on('-l NUM', '--loop' 'loop') do |loop|
|
|
77
|
+
opts.on('-l NUM', '--loop' 'loop times') do |loop|
|
|
78
78
|
args[:loop] = loop.to_i
|
|
79
79
|
end
|
|
80
80
|
opts.on('-s NUM', '--max-scenario', 'max-scenario') do |conc|
|