s4:ldap_server: let ldapsrv_call_writev_start use conn_idle_time to limit the time
commit743a56e5ccf358deb7b7093c55ea796e7000de3f
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Oct 2022 08:17:25 +0000 (13 10:17 +0200)
committerJule Anger <janger@samba.org>
Mon, 31 Oct 2022 09:05:10 +0000 (31 09:05 +0000)
treeb3114c446b47c9cbd40b7dcda5cd52a40715c57a
parentb615bf4333a1a1a3c80bd93a186f1a137c8b13dc
s4:ldap_server: let ldapsrv_call_writev_start use conn_idle_time to limit the time

If the client is not able to receive the results within connections idle
time, then we should treat it as dead. It's value is 15 minutes (900 s)
by default.

In order to limit that further an admin can use 'socket options'
and set TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL and/or TCP_USER_TIMEOUT
to useful values.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15202

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Oct 19 17:13:39 UTC 2022 on sn-devel-184

(cherry picked from commit eb2f3526032803f34c88ef1619a832a741f71910)
source4/ldap_server/ldap_server.c