check all socket reads and return value on error
check all socket reads and return value on error

CDRIVER-199 Socket reads not checked for IO errors, e.g. timeouts

mongodb/mongo-c-driver-legacy,mongodb/mongo-c-driver-legacy,HeliumProject/mongo-c,Elastica/mongo-c-driver-legacy,mongodb/mongo-c-driver-legacy,HeliumProject/mongo-c,HeliumProject/mongo-c,Elastica/mongo-c-driver-legacy,Elastica/mongo-c-driver-legacy,Elastica/mongo-c-driver-legacy,mongodb/mongo-c-driver-legacy,HeliumProject/mongo-c