[Opendnssec-user] Problems adding largish # of zones

Havard Eidnes he at uninett.no
Wed Dec 23 00:02:28 UTC 2015


Hi,

I've modified the diff to xfrd_tcp_release() so that it doesn't
decrease the available TCP sessions if the FD passed was already
-1, as can happen e.g. if you exceed the number of allowable open
FDs (bouncing into that is an error in itself, but this appears
to help ... somewhat):

     if (set->tcp_conn[conn]->fd != -1) {
         close(set->tcp_conn[conn]->fd);
+        set->tcp_count --;
+    } else {
+       ods_log_error("[%s] zone %s no FD to release towards %s", xfrd_str,
+               zone->name, xfrd->master->address);
+       return;
     }
     set->tcp_conn[conn]->fd = -1;
-    set->tcp_count --;
-    return;
+    ods_log_info("[%s] releasing TCP connection, active: %d",
+               xfrd_str, set->tcp_count);
+

Regards,

- Håvard



More information about the Opendnssec-user mailing list