libubus: do not abort recv_retry before completing a message

If the header is read but not the remainder of the message, the stream
will be out of sync and parsing of future messages won't work

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2019-04-16 10:34:45 +02:00
parent 221ce7e7ff
commit 4daab27d00

View file

@ -192,8 +192,6 @@ static int recv_retry(struct ubus_context *ctx, struct iovec *iov, bool wait, in
if (bytes < 0) {
bytes = 0;
if (uloop_cancelling() || ctx->cancel_poll)
return 0;
if (errno == EINTR)
continue;