gnutls_record_check_pending() broken?
Peter Hendrickson
pdh at wiredyne.com
Thu May 28 19:56:32 CEST 2009
Simon writes:
> Simon Josefsson <simon at josefsson.org> writes:
> > Peter Hendrickson <pdh at wiredyne.com> writes:
> >
> >> gnutls_record_check_pending() doesn't work for me. It always returns
> >> 0, even when data is pending.
> >
> > How did you test this? A small code demonstrating the problem would
> > help. I'll see if I can get something to work too...
>
> Indeed, the patch below against mini.c demonstrate it working. For me
> it prints:
It prints for me, too.
What happens if you put the record_check_pending() call before you do
the gnutls_record_recv()? For me, it reports no bytes pending, even
if I do a sleep(10).
Peter
More information about the Gnutls-devel
mailing list