[PATCH] split out starttls

Stefan (metze) Metzmacher metze at samba.org
Wed Jul 26 06:53:53 GMT 2006

Hash: SHA1

Andrew Bartlett schrieb:
> On Tue, 2006-07-25 at 20:22 -0400, simo wrote:
>> On Wed, 2006-07-26 at 10:10 +1000, Andrew Bartlett wrote:
>>> BTW, we should now be in a very good position to have the LDAP server
>>> side do async writes to the LDAP socket, when data becomes available.
>>> (But we should do some buffering, do avoid doing a TCP send and SASL
>>> encrypt for every entry).
>> I would do the async stuff first and then when we are all set and the
>> thing works, add a caching layer if needed.
> Actually, on reflection, it's quite easy to do.  We just need to put a
> bit more smarts in the packet layer:  It should attempt to send all the
> outstanding packets in one write.  That will do the 'right thing', as
> various other parts underneath can break up the packets.

maybe we should thing about adding
a writev() hook to the socket layer,
so that we avoid the memcopy to one large DATA_BLOB.

But I'm not sure what systems have this calls...

Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org


More information about the samba-technical mailing list