diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-04-16 10:34:45 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-04-16 10:34:46 +0200 |
commit | 4daab27d004fa604095923d5471a69283a84b034 (patch) | |
tree | cd0a3cc967b5cd9e43706e11be14d28545b1c302 | |
parent | 221ce7e7ff1bd1a0c9995fa9d32f58e865f7207f (diff) | |
download | ubus-4daab27d004fa604095923d5471a69283a84b034.tar.gz |
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>
-rw-r--r-- | libubus-io.c | 2 |
1 files changed, 0 insertions, 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; |