client: blocking wait on socket