Break out of recv loop when we read no data

Prevents being stuck in an infinite loop constantly trying to read from a dead server.