Skip to content

Commit

Permalink
[Ldap] force default network timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Feb 18, 2020
1 parent 334f020 commit 63f9e01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/Ldap/Adapter/ExtLdap/Connection.php
Expand Up @@ -107,6 +107,10 @@ protected function configureOptions(OptionsResolver $resolver)
$value['referrals'] = $options['referrals'];
}

if (!isset($value['network_timeout'])) {
$value['network_timeout'] = ini_get('default_socket_timeout');
}

return $value;
});

Expand Down

0 comments on commit 63f9e01

Please sign in to comment.