]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: srp: increased timeout to 40secs [ci skip]
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 19 Feb 2018 07:38:35 +0000 (08:38 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 19 Feb 2018 07:39:11 +0000 (08:39 +0100)
Since we increased the maximum parameters to 8k, ensure
that slower systems have enough time to complete the handshake.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
tests/srp.c

index 7949eada7448fd782b3c9980ae5b47a35438df97..9a198ae8dc30589afbd2be6292ba568d2d6dcc22 100644 (file)
@@ -131,7 +131,7 @@ static void client(int fd, const char *prio, const char *user, const char *pass,
 
        /* Use default priorities */
        assert(gnutls_priority_set_direct(session, prio, NULL)>=0);
-       gnutls_handshake_set_timeout(session, 20 * 1000);
+       gnutls_handshake_set_timeout(session, 40 * 1000);
 
        /* put the anonymous credentials to the current session
         */
@@ -229,7 +229,7 @@ static void server(int fd, const char *prio)
                                s_x509_cred);
 
        gnutls_transport_set_int(session, fd);
-       gnutls_handshake_set_timeout(session, 20 * 1000);
+       gnutls_handshake_set_timeout(session, 40 * 1000);
 
        do {
                ret = gnutls_handshake(session);