ioquatix/rubydns — pull request #23 by klarrimore (2013-10-08 03:03:32+00:00)
Title: Timeout fix

This is a fix for the timeout in Request. Requests would timeout even after they succeeded. With this method, when a Request times out it calls `:fail` then calls for `try_next_server!`. This new method caused an issue where the Request no longer closed the connect because before everyone request "timed out" and called `try_next_server!` which has this at the top:
def try_next_server!
if @request
@request.close_connection
@request = nil
end

so I added close_connection inside `:recieve_data`