[gnutls-help] Regression bug between 2.x and 3.2?

Lavrentiev, Anton (NIH/NLM/NCBI) [C] lavr at ncbi.nlm.nih.gov
Thu Jun 12 22:28:11 CEST 2014


Hello,

Our code is using gnutls_transport_set_{push|pull}_function() and is having problems since
we've switched from an old GNUTLS 2.4.2 to newer 3.2.13.  Namely, when the push callback
experiences a short write (i.e. reporting fewer written bytes than it was requested to
write), gnutls_record_send() returns an error, rather than the number of bytes that
it has succeeded to write before the underlying short write (and which it used to do formerly).

Is that the expected behavior?  gnutls_record_send() seems to be documented to be able
to return a partial write.

Anton Lavrentiev
Contractor NIH/NLM/NCBI




More information about the Gnutls-help mailing list