Browse Source

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>
Felix Fietkau 5 years ago
parent
commit
4daab27d00
1 changed files with 0 additions and 2 deletions
  1. 0 2
      libubus-io.c

+ 0 - 2
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;