Remove while recv/send loops

Based on strace counters subsequent calls to recv() or send() where
never successful.