[gnutls-devel] [sparc] test dtls-repro-20170915 fails dtls_try_with_key_mtu:160: dtls_try_with_key_mtu:160: Handshake failed

Nikos Mavrogiannopoulos nmav at gnutls.org
Fri May 11 08:28:29 CEST 2018


Hi,
 What I see there is a timeout of 168026ms. That means that it took quite
more than the default value to finish. Could it be that the system is too
slow?
If you add gnutls_dtls_set_timeouts() and play with the total value would
it make it work? (the attached patch simply sets the default values, you'll
need to modify the 60*1000 value)

regards,
Nikos


On Sat, May 5, 2018 at 10:30 PM Alon Bar-Lev <alon.barlev at gmail.com> wrote:

> Here[1]
>
> [1] https://654918.bugs.gentoo.org/attachment.cgi?id=530054
>
> On Sat, May 5, 2018 at 11:07 PM Alon Bar-Lev <alon.barlev at gmail.com>
> wrote:
>
>> I will ask.
>> Thanks!
>>
>> On Sat, May 5, 2018 at 10:21 PM Nikos Mavrogiannopoulos <nmav at gnutls.org>
>> wrote:
>>
>> > Doesn't ring a bell. Could it be that a different gnutls library is used
>> when running
>> > this test? Is there a way to run 'dtls-repro-20170915' manually with
>> GNUTLS_DEBUG_LEVEL=6?
>>
>> > On Sat, May 5, 2018 at 9:02 PM Alon Bar-Lev <alon.barlev at gmail.com>
>> wrote:
>>
>> > Hi,
>> > Any clue how to dig into this?
>>
>> >> Reference[1]
>> >> Thanks!
>> >> Alon
>>
>> >> [1] https://bugs.gentoo.org/show_bug.cgi?id=654918
>> >> _______________________________________________
>> >> Gnutls-devel mailing list
>> >> Gnutls-devel at lists.gnutls.org
>> >> http://lists.gnupg.org/mailman/listinfo/gnutls-devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20180511/6fbc553e/attachment.html>
-------------- next part --------------
diff --git a/tests/common-cert-key-exchange.c b/tests/common-cert-key-exchange.c
index 9d8fbb217..dab5a2ab0 100644
--- a/tests/common-cert-key-exchange.c
+++ b/tests/common-cert-key-exchange.c
@@ -374,6 +374,7 @@ void dtls_try_with_key_mtu(const char *name, const char *client_prio, gnutls_kx_
 	gnutls_credentials_set(server, GNUTLS_CRD_CERTIFICATE,
 				serverx509cred);
 	gnutls_credentials_set(server, GNUTLS_CRD_ANON, s_anoncred);
+	gnutls_dtls_set_timeouts(server, 500, 60*1000);
 
 	gnutls_priority_set_direct(server,
 				   "NORMAL:+ANON-ECDH:+ANON-DH:+ECDHE-RSA:+DHE-RSA:+RSA:+ECDHE-ECDSA:+CURVE-X25519",
@@ -413,6 +414,7 @@ void dtls_try_with_key_mtu(const char *name, const char *client_prio, gnutls_kx_
 	if (ret < 0)
 		exit(1);
 
+	gnutls_dtls_set_timeouts(client, 500, 60*1000);
 	gnutls_anon_allocate_client_credentials(&c_anoncred);
 	gnutls_credentials_set(client, GNUTLS_CRD_ANON, c_anoncred);
 	ret = gnutls_credentials_set(client, GNUTLS_CRD_CERTIFICATE,
diff --git a/tests/suite/tls-fuzzer/tlsfuzzer b/tests/suite/tls-fuzzer/tlsfuzzer
--- a/tests/suite/tls-fuzzer/tlsfuzzer
+++ b/tests/suite/tls-fuzzer/tlsfuzzer
@@ -1 +1 @@
-Subproject commit ff3ab5e356e413bba5845deecdfe105dd207a9a5
+Subproject commit ff3ab5e356e413bba5845deecdfe105dd207a9a5-dirty


More information about the Gnutls-devel mailing list