From 4daab27d004fa604095923d5471a69283a84b034 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 16 Apr 2019 10:34:45 +0200 Subject: [PATCH] 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 --- libubus-io.c | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.25.1