s4:ldap_server: let ldapsrv_call_writev_start use conn_idle_time to limit the time
commitf7a84cffe9d9c61df7a7c5dd94e9caf3d18d9b3c
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 14:30:09 +0000 (31 14:30 +0000)
treec0638e04bb0f43681610105de702b37e071358fb
parentbc16a8abe3f1446a0da7e672cdba469fcc8ef96a
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