CDRIVER-56 fix for socket return check
CDRIVER-56 fix for socket return check

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