twilson63/cloudq_client — pull request #3 by kdstew (2014-08-15 18:06:55+00:00)
Title: Set timeout on request

A timeout was added to the Request.get restclient request to accomodate the latest version of cloudq.

Since the timeout is specified in seconds
````
### from rest_client Request source
# * :timeout and :open_timeout are how long to wait for a response and to
# open a connection, in seconds. Pass nil to disable the timeout.
````
I set the timeout to 300 which should be sufficient to handle the 100 sec wait time in cloudq if no messages are on the queue. But still allow the request to timeout eventually if no response is received.