diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-02-15 09:52:10 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-02-15 09:52:12 +0100 |
commit | e6dcb14dbbd3e9e40a1f193a7bf6657e82b88cb9 (patch) | |
tree | c720cea48d5356c9395e2ef31bbc7a408276bd1d /tests/mini-loss-time.c | |
parent | 20ba8633d7c5f8795d4913a017c70cd6d73b45a1 (diff) | |
download | gnutls-e6dcb14dbbd3e9e40a1f193a7bf6657e82b88cb9.tar.gz |
tests: mini-loss-time: ensure client timeouts after the server is
This addresses issue with the server detecting the client disconnection
prior to its timeout. Reported by Steven Chamberlain, Andreas Metzler.
Diffstat (limited to 'tests/mini-loss-time.c')
-rw-r--r-- | tests/mini-loss-time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mini-loss-time.c b/tests/mini-loss-time.c index 13de21ef1b..b95f631c45 100644 --- a/tests/mini-loss-time.c +++ b/tests/mini-loss-time.c @@ -50,7 +50,7 @@ int main() #include "utils.h" /* This program tests whether a DTLS handshake would timeout - * in a minute. + * in the expected time. */ static void print_type(const unsigned char *buf, int size) @@ -136,7 +136,7 @@ static void client(int fd) */ gnutls_init(&session, GNUTLS_CLIENT | GNUTLS_DATAGRAM); gnutls_dtls_set_mtu(session, 1500); - gnutls_dtls_set_timeouts(session, 1 * 1000, 30 * 1000); + gnutls_dtls_set_timeouts(session, 1 * 1000, 31 * 1000); /* Use default priorities */ gnutls_priority_set_direct(session, |