Break out of recv loop if we read no data - this prevents being stuck in an
infinite loop when reading from a dead server