[gnutls-help] gnutls_record_send says it sent more than I told it to!?

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Fri Feb 5 01:16:07 CET 2016

On Wed, 2016-02-03 at 22:02 +0100, Mathieu Chouquet-Stringer wrote:

> > Could it be that the data you intended to be send have been 
> > modified?
> What do you mean? Something like: is my original data buffer 
> untouched?
> Asked another way, do I have to maintain the integrity of my data
> between the EAGAIN call and the NULL/0? I think I have but I'll have 
> to
> check in case I'm not supposed to touch that buffer until it's sent.

In no case you need to maintain the integrity of the data. However, if
you resume a call and you input different data you will see discrepancy
in send sizes, as the one you described. If you use NULL,0 as
parameters you'll avoid that.


More information about the Gnutls-help mailing list