diff --git a/project1/dtls_secured_nonblocking/server-dtls-nonblocking.c b/project1/dtls_secured_nonblocking/server-dtls-nonblocking.c index 11722376..096e4403 100644 --- a/project1/dtls_secured_nonblocking/server-dtls-nonblocking.c +++ b/project1/dtls_secured_nonblocking/server-dtls-nonblocking.c @@ -255,7 +255,9 @@ int main(int argc, char** argv) while (ret != SSL_SUCCESS && (error == SSL_ERROR_WANT_READ || 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) printf("... server would read block\n");