currLen in Client::RunTCP() being declared unsigned is a bug
It means that the (currLen < 0) check for an error return value from the write() system call can never be true, and so write errors are not detected.
Log in to post a comment.