example/client.rb in http-2-0.9.1 vs example/client.rb in http-2-0.10.0
- old
+ new
@@ -112,10 +112,10 @@
data = sock.read_nonblock(1024)
# puts "Received bytes: #{data.unpack("H*").first}"
begin
conn << data
- rescue => e
+ rescue StandardError => e
puts "#{e.class} exception: #{e.message} - closing socket."
e.backtrace.each { |l| puts "\t" + l }
sock.close
end
end