Change read to readexactly to get that actual data
Trying to just ignore empty reads
Debug empty data issue
Properly handle connection lost
Remove other debugging line
Merge pull request #17 from mrdon/master

Fix bad handling of connection timeout