set low-level timeouts on socket, and now retry on Errno::ETIMEDOUT.
set timeout on socket to 0.5.
also rescue ECONNREFUSED.
added max retries.
Merge pull request #1 from bcoe/master

Set Low-Level Timeouts on Socket, Retry on Errno::ETIMEDOUT