From: Michael Tremer Date: Tue, 13 Aug 2024 19:11:03 +0000 (+0000) Subject: xfer: Ignore CURLE_AGAIN X-Git-Tag: 0.9.30~1205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7eef6ef8d171d9115c815630e9403fef12caa205;p=pakfire.git xfer: Ignore CURLE_AGAIN This is happening when the server is sending a ping over WebSocket which triggers the socket, but there is no data for us to deal with as it has already been handled by cURL. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/xfer.c b/src/libpakfire/xfer.c index c4e7c3016..a932872d6 100644 --- a/src/libpakfire/xfer.c +++ b/src/libpakfire/xfer.c @@ -925,6 +925,9 @@ static int pakfire_xfer_socket_recv(struct pakfire_xfer* xfer) { case CURLE_OK: break; + case CURLE_AGAIN: + return 0; + // We seem to have lost the connection case CURLE_GOT_NOTHING: return pakfire_xfer_fail(xfer, PAKFIRE_XFER_TRANSPORT_ERROR);