10000 bug #35774 [Ldap] force default network timeout (nicolas-grekas) · symfony/symfony@a81cbc9 · GitHub
[go: up one dir, main page]

Skip to content

Commit a81cbc9

Browse files
bug #35774 [Ldap] force default network timeout (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [Ldap] force default network timeout | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - The default network timeout is infinite, which makes no sense and can block workers. Note that LDAP supports also "timelimit" options, but those are max-durations for LDAP queries. We cannot limit them by default. Commits ------- 63f9e01 [Ldap] force default network timeout
2 parents 7225a01 + 63f9e01 commit a81cbc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Ldap/Adapter/ExtLdap/Connection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ protected function configureOptions(OptionsResolver $resolver)
107107
$value['referrals'] = $options['referrals'];
108108
}
109109

110+
if (!isset($value['network_timeout'])) {
111+
$value['network_timeout'] = ini_get('default_socket_timeout');
112+
}
113+
110114
return $value;
111115
});
112116

0 commit comments

Comments
 (0)
0