Added timeout to the connection.
Added timeout to all clients.
Merge pull request #1 from casualsteps/add_timeout

Added timeout to the connection.