]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Extend gss-sample timeout from 10s to 300s 821/head
authorAlejandro Perez <alex.perez-mendez@jisc.ac.uk>
Wed, 1 Aug 2018 07:56:54 +0000 (09:56 +0200)
committerGreg Hudson <ghudson@mit.edu>
Wed, 1 Aug 2018 15:10:01 +0000 (11:10 -0400)
Some GSS mechanisms (such as GSS EAP - RFC 7055) require user
interaction, and ten seconds is too little to allow users to select
the identity they want to use or type their password.  Make gss-client
and gss-server more useful for testing these mechanisms by extending
its timeout to five minutes.

[ghudson@mit.edu: edited commit message]

ticket: 8719 (new)

src/appl/gss-sample/gss-misc.c

index 080ac4d0c620fc91f8aa0e20b3ed8596ec6211da..856ca4a4e0fcb01c1022c820873d397dd99314ae 100644 (file)
@@ -115,7 +115,7 @@ read_all(int fildes, void *data, unsigned int nbyte)
 
     FD_ZERO(&rfds);
     FD_SET(fildes, &rfds);
-    tv.tv_sec = 10;
+    tv.tv_sec = 300;
     tv.tv_usec = 0;
 
     for (ptr = buf; nbyte; ptr += ret, nbyte -= ret) {