- Fix buffer compare functions
 - Fix socket error handling
 - Review tests accordingly