Adding two errno codes to the logic that decides if a connection is dead.