DirectAdmin child processes cause temporary cpu usage before processing request

Version 1.62.0


After a full refactoring of the parent/child code, the global mime.types file was read after the fork, before the request is processed. The /etc/mime.types is quite large, so this was an unnecessary load. 1) Code optimizations have been applies, and the read of the mime.types file dropped from 399154us, down to 3458us. 2) The mime.types will be moved to read in the parent, prior to each child fork. This will mean a restart of DA is required if the /etc/mime.types is ever changed. ---- T29219

Interested to try DirectAdmin? Get a 30-day Free Trial!