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
-------
63f9e013a1
[Ldap] force default network timeout
This commit is contained in:
commit
a81cbc99c7
@ -107,6 +107,10 @@ class Connection extends AbstractConnection
|
|||||||
$value['referrals'] = $options['referrals'];
|
$value['referrals'] = $options['referrals'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($value['network_timeout'])) {
|
||||||
|
$value['network_timeout'] = ini_get('default_socket_timeout');
|
||||||
|
}
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user