s4-lib/tls: Try socket_send() multiple times to send partial packets
authorAndrew Bartlett <abartlet@samba.org>
Wed, 18 Jul 2012 05:28:50 +0000 (15:28 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 18 Jul 2012 09:23:55 +0000 (11:23 +0200)
commitd0d05f8474ed1882d373f042aba2c0209247678a
tree88b39ca2b2519743559f3dae1d66278fecc1d124
parent02a356ea775a3ba589cb50af3c861ab86aaffa0b
s4-lib/tls: Try socket_send() multiple times to send partial packets

This works around an artificial limitation in socket_wrapper that breaks
some versions of GnuTLS when we return a short write.

Instead, keep pushing until the OS will not take it.

The correct solution will be to use tls_tstream, but the client code
for this is not yet tested and needs the ldap client layer changed
to use it.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jul 18 11:23:55 CEST 2012 on sn-devel-104
source4/lib/tls/tls.c