Make recv_pattern() use the nonblock API.