Ticket #4442 Do not process URL aliases during bootup but trigger it just after finished booting. This completely solves the bootup delays without lowering the timeout as before. Probably need to increase a bit the timeouts now to be friendly to other connections

This commit is contained in:
Ermal LUÇI 2015-06-07 23:34:59 +02:00
parent 8c9216d5f2
commit 0d44aca646
2 changed files with 4 additions and 3 deletions

View File

@ -1447,6 +1447,9 @@ function alias_expand_urltable($name) {
$urltable_prefix = "/var/db/aliastables/";
$urltable_filename = $urltable_prefix . $name . ".txt";
if (platform_booting())
return;
if (is_array($config['aliases']['alias'])) {
foreach ($config['aliases']['alias'] as $alias) {
if (preg_match("/urltable/i", $alias['type']) && ($alias['name'] == $name)) {

View File

@ -448,9 +448,7 @@ unset($g['booting']);
if ($ipsec_dynamic_hosts) {
vpn_ipsec_configure();
}
if ($ipsec_dynamic_hosts || !empty($filterdns)) {
filter_configure();
}
filter_configure();
led_normalize();