put dtls timeout back in

pull/1/head
Kaleb Himes 2014-05-25 11:32:44 -06:00
parent 698637f0c6
commit 36a710754e
1 changed files with 3 additions and 1 deletions

View File

@ -255,7 +255,9 @@ int main(int argc, char** argv)
while (ret != SSL_SUCCESS && (error == SSL_ERROR_WANT_READ || while (ret != SSL_SUCCESS && (error == SSL_ERROR_WANT_READ ||
error == SSL_ERROR_WANT_WRITE)) { error == SSL_ERROR_WANT_WRITE)) {
int currTimeout = 5 * 60; int currTimeout = 1;
currTimeout = CyaSSL_dtls_get_current_timeout(ssl);
if (error == SSL_ERROR_WANT_READ) if (error == SSL_ERROR_WANT_READ)
printf("... server would read block\n"); printf("... server would read block\n");