Fix socket-error handling bug introduced by previous sendall() optimization
Fix socket-error handling bug introduced by previous sendall() optimization

wujuguang/motor,wujuguang/motor,asvetlov/motor,mongodb/motor,mongodb/motor