From: Felix Fietkau Date: Tue, 16 Apr 2019 08:34:45 +0000 (+0200) Subject: libubus: do not abort recv_retry before completing a message X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4daab27d004fa604095923d5471a69283a84b034;p=project%2Fubus.git 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 --- diff --git a/libubus-io.c b/libubus-io.c index daa7106..887e88c 100644 --- a/libubus-io.c +++ b/libubus-io.c @@ -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;