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: Nikos Mavrogiannopoulos
Subject: Re: [Help-gnutls] Asynchronous application and not enough buffer ready
Date: Wed, 8 Jun 2005 20:33:03 +0200
User-agent: KMail/1.7.2

On Wednesday 08 June 2005 17:16, address@hidden wrote:
> Hello,

I'm not really sure I've understood the situation, but anyway my comments
are below.

> 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.

> The pull function returns 0 bytes read twice 
> after pulling the bytes already read and record_recv returns with an
> error indicating that a TLS packet of unexpected size has been
> received.
This is correct. gnutls cannot decrypt until a full packet has been received.


-- 
Nikos Mavrogiannopoulos




reply via email to

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