[gnutls-devel] [PATCH 1/6] Explicitly marked some variables const in _gnutls_buffer_append_data().
    Jaak Ristioja 
    jaak.ristioja at cyber.ee
       
    Fri Dec 19 11:39:28 CET 2014
    
    
  
On 19.12.2014 12:10, Nikos Mavrogiannopoulos wrote:
> Why would you need to buffer such large amount of data? I don't believe
> it would speed up much given the small packet size of TLS.
Well, we don't need to buffer such large amount of data. But we didn't
know that GnuTLS buffered ALL the corked data, because the documentation
to gnutls_record_cork() used to imply otherwise, i.e:
  All queued records will be sent when gnutls_uncork() is called,
  **or when the maximum record size is reached**.
(**emphasis** added)
Our application was just sending gigabytes of data while GnuTLS was
corked. We assumed that GnuTLS would buffer at most the maximum record
size number of bytes.
Regards,
Jaak Ristioja
Cybernetica AS
    
    
More information about the Gnutls-devel
mailing list