Don't delay proxy replies when there was a timeout
authorAlan T. DeKok <aland@freeradius.org>
Mon, 26 May 2014 13:30:38 +0000 (09:30 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 May 2014 13:31:34 +0000 (09:31 -0400)
src/main/process.c

index 705ef01..8280dc4 100644 (file)
@@ -1319,6 +1319,17 @@ STATE_MACHINE_DECL(request_finish)
        if ((request->reply->code == PW_CODE_AUTHENTICATION_REJECT) &&
            (request->root->reject_delay > 0)) {
                request->response_delay = request->root->reject_delay;
+
+#ifdef WITH_PROXY
+               /*
+                *      If we timed out a proxy packet, don't delay
+                *      the reject any more.
+                */
+               if (request->proxy && !request->proxy_reply) {
+                       request->response_delay = 0;
+               }
+#endif
+
        }
 
        /*