]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we need room for num_workers messages in the control plane, too
authorAlan T. DeKok <aland@freeradius.org>
Tue, 20 Dec 2016 18:10:28 +0000 (13:10 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 20 Dec 2016 18:10:28 +0000 (13:10 -0500)
src/tests/util/worker_test.c

index ac3632f914f0b074adb3aaf6e4230b7f1bff0a7a..16bb93fe143b216401a32eb092ed5b6097a02bbf 100644 (file)
@@ -482,6 +482,7 @@ int main(int argc, char *argv[])
        if (!max_control_plane) {
                max_control_plane = MAX_CONTROL_PLANE;
                if (max_outstanding > max_control_plane) max_control_plane = max_outstanding;
+               if (num_workers > max_control_plane) max_control_plane = num_workers + (num_workers >> 1);
        }
 
 #if 0