Net::HTTP reponse method - custom timeout

Is there a way to specify a timeout period for the request? Net::HTTP
has a read_timeout attribute, but I can see how to use it, if this is
the approach to take.

Here's what I've got

http =, uri.port)
http.open_timeout = x
http.read_timeout = y
response = http.start do |http|