recv_until: add support for 'contains' condition