]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests/key-material-dtls.c: Try again on GNUTLS_E_AGAIN and GNUTLS_E_INTERRUPTED
authorTim Rühsen <tim.ruehsen@gmx.de>
Mon, 20 Jan 2020 10:48:50 +0000 (11:48 +0100)
committerTim Rühsen <tim.ruehsen@gmx.de>
Sun, 26 Jan 2020 13:51:33 +0000 (14:51 +0100)
This fixes issues on the CI cross-runners with 'make -jN', N > 1.

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
tests/key-material-dtls.c

index 82ed86625b6ad95f03bd48866135ec584beb258a..195afd0795371604f290073ed2e2f31674fe049f 100644 (file)
@@ -341,7 +341,7 @@ static void server(int fd)
 
        do {
                ret = gnutls_record_recv(session, buf, sizeof(buf));
-       } while(ret > 0);
+       } while(ret > 0 || ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_INTERRUPTED);
 
        if (ret < 0) {
                fail("error: %s\n", gnutls_strerror(ret));