ldap_server: chunk the writev() calls at 25MB
authorAndrew Bartlett <abartlet@samba.org>
Tue, 14 May 2019 00:08:03 +0000 (12:08 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 May 2019 04:01:11 +0000 (04:01 +0000)
commit8dfad9fa2cc5f9ae464a6df44c7ae0448cc4f3ab
treeec37ce52ac541e3fa9c47b8b7f1380658f4c4a39
parente8475f8ec5fc61409a98667b22e20364c0820cd6
ldap_server: chunk the writev() calls at 25MB

This should limit the amount we send to GENSEC at a
time where it may help avoid large realloc or memcpy calls.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/ldap_server/ldap_server.c
source4/ldap_server/ldap_server.h