> Can I disable Nagle algorithm using OpenSSL? My application always send
> entire buffers to openssl, so I think disable Nagle
> but I'm wondering if openssl need coalescing data when sending
> SSL payloads.

        Nagle only kicks in when you have an outstanding unacknowledged packet
smaller than the MTU and then try to send another one (two short writes in
less than about 200mS). This is precisely the case where coalescing could
have helped. If you aren't doing this, Nagle won't kick in. If you are, it
most likely will be helpful.

        Do you have any evidence that Nagle is even affecting you at all? If you
have some specific problem, you can try disabling Nagle to see if it's at
all related, but odds are you'll find that it has no effect. If it does,
don't stick with Nagle disabled -- figure out what you're doing to trigger
Nagle and try to work around it.

        The usual case where it's legitimate to disable Nagle is an interactive
application that necessarily sends a lot of small chunks of data that really
needs them to be replied to rapidly. For example, interactive 'telnet'.

        I would advise extreme caution before disabling Nagle on any application
that sends bulk data over a WAN.

        DS


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to