Skip to content

Commit

Permalink
revert agressive TLS shutdown on lost requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Mauchle committed Jul 3, 2019
1 parent c09ac44 commit b3e22a0
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 @@ -647,7 +647,7 @@ void *dtlsclientrd(void *arg) {
for (;;) {
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) || (server->lostrqs && server->conf->statusserver!=RSP_STATSRV_OFF)) {
if (SSL_get_shutdown(server->ssl))
debug (DBG_WARN, "tlscleintrd: connection to server %s lost", server->conf->name);
else if (server->lostrqs)
Expand Down
2 changes: 1 addition & 1 deletion tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ void *tlsclientrd(void *arg) {
for (;;) {
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) || (server->lostrqs && server->conf->statusserver!=RSP_STATSRV_OFF)) {
if (SSL_get_shutdown(server->ssl))
debug (DBG_WARN, "tlsclientrd: connection to server %s lost", server->conf->name);
else if (server->lostrqs)
Expand Down

0 comments on commit b3e22a0

Please sign in to comment.