Revert bad change.

We need to correctly handle EAGAIN for cases where
sockets are non-blocking.