]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print time after the timer has been initialized
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Oct 2017 15:25:40 +0000 (11:25 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Oct 2017 15:25:54 +0000 (11:25 -0400)
src/modules/rlm_radius/rlm_radius_udp.c

index b17e004aa3ba69ecd1d7a7ece42c6166f57c860a..e180ebcdc962ae6dc58d0ed0ac2d811bacd9108a 100644 (file)
@@ -1342,15 +1342,16 @@ static int conn_write(rlm_radius_udp_connection_t *c, rlm_radius_udp_request_t *
                u->packet_len = packet_len;
 
                if (!c->inst->parent->synchronous) {
-                       RDEBUG("Proxying request.  Expecting response within %d.%06ds",
-                              u->timer.rt / USEC, u->timer.rt % USEC);
-
                        rad_assert(u->timer.retry == &c->inst->parent->retry[u->code]);
 
                        if (rr_track_start(u, &u->timer, c->thread->el, response_timeout, u) < 0) {
                                RDEBUG("Failed starting retransmit tracking");
                                return -1;
                        }
+
+                       RDEBUG("Proxying request.  Expecting response within %d.%06ds",
+                              u->timer.rt / USEC, u->timer.rt % USEC);
+
                } else {
                        /*
                         *      If the packet doesn't get a response,