[patch] Fix various bugs when using the gnutls async API

Nikos Mavrogiannopoulos nmav at gnutls.org
Tue Aug 17 17:55:48 CEST 2010

On 08/11/2010 03:49 PM, Sjoerd Simons wrote:
> Hi,
> Our XMPP library (wocky) uses gnutls in a quite heavily async way, which
> unfortunately seems to have triggered some bugs in the lastest
> versions :/. Some patches for git HEAD attached, which seems to fix
> things nicely for me.
> Some extra comments for some of the patches:
> * 0003-Remember-the-amount-of-user-data-we-re-sending-out.patch
>   I guess It could be argued that this information should be stored
>   inside the record_send_buffer instead of in the session internal
>   struct directly. I'm happy to change the patch around to do just
>   that :)

Hello Sjoerd,
 Thanks for the patches. I've applied 1 and 2. But on 3 I cannot get
what was the issue that mandated the change. Why you need the user
length instead of the byte length?

I am also wondering why the test program mini-egain that forces the pull
function to return eagain now and then, it didn't trigger the errors you
see. How do you trigger those issues?

best regards,

More information about the Gnutls-devel mailing list