Hi all,

My understanding of the man page for the function gnutls_record_check_pending() says that it should return the number of bytes waiting to be read, or 0 bytes if nothing is to be read.

I have run in to a case where the function is returning 0, but there really is data to be read (if I use gdb to jump past the gnutls call, data is read). Is there something I'm not understanding?

example pseudo-code:
while( 1 ) {
    ret = select( fd );
    // ret == 1
    ret = gnutls_record_check_pending( session );
    // ret == 0
    if ( ret == 0 )
        continue;
    gnutls_record_recv( session );
}


Thanks,
Michael
_______________________________________________
Help-gnutls mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-gnutls

Reply via email to