Skip to content

Commit

Permalink
use configured retryinterval in TLS instead of static value
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Mauchle committed Jul 2, 2019
1 parent 0d0b23f commit c09ac44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ void *dtlsclientrd(void *arg) {
unsigned char *buf;

for (;;) {
buf = raddtlsget(server->ssl, 5, &server->lock);
buf = raddtlsget(server->ssl, server->conf->retryinterval * (server->conf->retrycount+1), &server->lock);
if (!buf) {
if(SSL_get_shutdown(server->ssl) || server->lostrqs) {
if (SSL_get_shutdown(server->ssl))
Expand Down
2 changes: 1 addition & 1 deletion tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void *tlsclientrd(void *arg) {
struct timeval now;

for (;;) {
buf = radtlsget(server->ssl, 10, &server->lock);
buf = radtlsget(server->ssl, server->conf->retryinterval * (server->conf->retrycount+1), &server->lock);
if (!buf) {
if (SSL_get_shutdown(server->ssl) || server->lostrqs) {
if (SSL_get_shutdown(server->ssl))
Expand Down

0 comments on commit c09ac44

Please sign in to comment.