sock: revisit the ack algorithm to fix a problem when a server is in blocking mode. I do not know yet if that will have any performance impact in non-blocking mode.