if condition error

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
loop failed to stop when timeout parameter was zero

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Do not notify send completion after connection was flushed
when moving from state CLOSE_WAIT to LAST_ACK
completions may still arrive ignore them since they were already flushed

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>