URL:
https://github.com/SSSD/sssd/pull/5360
Title: #5360: SDAP: set common options for sockets open by libldap
alexey-tikhonov commented:
"""
I was thinking, since if I understand it correctly
LDAP_OPT_NETWORK_TIMEOUT=0 means to have the timeout as short as possible,
My idea was as following:
- we always set `LDAP_OPT_NETWORK_TIMEOUT` to the value of `SDAP_NETWORK_TIMEOUT` in
`sdap_sys_connect_done()`
- `SDAP_NETWORK_TIMEOUT` is the value that we use as argument for
`set_fd_common_opts()`
So if IIUC, value of LDAP_OPT_NETWORK_TIMEOUT should always be the same as `timeout` for
socket that sssd opens itself.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5360#issuecomment-707113071