help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnutls] Asynchronous application and not enough buffer ready


From: cascardo
Subject: Re: [Help-gnutls] Asynchronous application and not enough buffer ready
Date: Wed, 8 Jun 2005 16:44:27 -0300
User-agent: Mutt/1.5.6+20040907i

On Wed, Jun 08, 2005 at 03:46:08PM -0300, address@hidden wrote:
> However, the solution proposed has made gnutls_record_recv go into a
> loop. It should return with 0 bytes read to the caller. I will check
> out the code and see if it's possible. If not, I will have to use some
> solutions I didn't want to.
> 
> On Wed, Jun 08, 2005 at 08:15:58PM +0200, Nikos Mavrogiannopoulos wrote:
> > On Wednesday 08 June 2005 17:16, address@hidden wrote:
> > 
> > > When the record size is greater than what the application has already
> > > put in the buffer, gnutls asks for bytes to the pull function which
> > > have not yet been read from the socket. To read these bytes, the main
> > > loop must run again. 
> > Then the pull function should return -1 and set errno to EAGAIN.
> > 

In fact, the code really does return when the pull function returns
with EAGAIN errno. However, my pull function gets called before
gnutls_record_recv returns. I will try harder to debug it, although I
may have to build a non-stripped debugging version of gnutls.

Thanks,

Thadeu Cascardo.
--



Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]