Attached is an improved version of one of the patches originally posted here. http://lists.freeradius.org/pipermail/freeradius-users/2012-May/060820.html It moves decrements of socket/client num_connections counters into event_new_fd so that it happens on all paths by which a connection may be removed. As the code now stands, when a connection is terminated by the other side, num_connections continues to count it towards connection limits. (Note that with the above code, num_connections will still count a dead connection towards limits until it has been abandoned by all users and cleaned up. Also I'm not completely sure this is immune to races since I haven't yet figured out if the connection garbage collection might be reentrant.) This has been tested in a radsec pure-proxy relay setup. It has not yet been tested in an AS setup.
participants (1)
-
Brian Julin