gnutls_handshake fails after EAGAIN

Tim Kosse tim.kosse at filezilla-project.org
Wed Aug 19 18:40:28 CEST 2009


Hi,

Vivek Dasmohapatra wrote:
> Probably worth checking that other functions with a similar calling
> convention (once with data, then with NULL for each EAGAIN) are also
> handled suitably, since it's an easy mistake to make, and won't be picked
> up if the tests use blocking push-pull functions.

actually there has been another bug in 2.8.0 and 2.8.1 which was also
triggered when the push function returned EAGAIN:

http://lists.gnu.org/archive/html/gnutls-devel/2009-06/msg00022.html
http://lists.gnu.org/archive/html/gnutls-devel/2009-07/msg00000.html

The fix is in
http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=c7e003ad9427c655a1b559baff1239a2c1907f32

The GnuTLS developers also added a test case that should hopefully
detect future problems like this, see tests/mini-eagain.c

Regards,
Tim


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20090819/f77f9449/attachment.pgp>


More information about the Gnutls-devel mailing list