http_recv: Switch to nonblock API.