fix close connection when read timeout
fix timeout; add fmt
Merge pull request #29 from chyzer/patch-1