Rewrite check for NativeSocket::write failure case
Rewrite check for NativeSocket::write failure case

jhammer/pheanstalk,augustash/pheanstalk,lcwxz1989/pheanstalk,dcb9/pheanstalk,Pasarkode/pheanstalk,jbboehr/pheanstalk,pda/pheanstalk