[Help-gnutls] Strange error when using libgnutls
Pedro Corte-Real
typo at netcabo.pt
Tue May 18 15:06:18 CEST 2004
On Tue, 2004-05-18 at 10:50 +0300, Nikos Mavroyanopoulos wrote:
> On Tuesday 18 May 2004 00:43, Pedro Corte-Real wrote:
>
> > When using a slightly modified version of the example code at:
> > http://www.gnu.org/software/gnutls/documentation/gnutls/gnutls.html#SECTION
> >00731000000000000000
> > The only modification I've done is to run gnutls_record_recv in a loop
> > to fetch everything until it gets an error or EOF.
> > The file is attatched.
> > I get this error:
> > "A TLS packet with unexpected length was received."
> > This happens when receiving the last block of information when
> > gnutls_record_recv returns an error (-9) instead of 0 for EOF.
> This is because the other end does not properly terminate the
> TLS session. Several https servers do that.
Any way around this?
Pedro Côrte-Real.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: </pipermail/attachments/20040518/eb4ea977/attachment.pgp>
More information about the Gnutls-help
mailing list