Added a 3 second connection timeout and read/write timeout
Merge pull request #12 from Kaidence/add_timeout

Added a 3 second connection timeout and read/write timeout