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:
parent
221ce7e7ff
commit
4daab27d00
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue