gnutls: fix g_pollable_input_stream_is_readable() implementation
authorDan Winship <danw@gnome.org>
Wed, 8 Dec 2010 18:32:52 +0000 (19:32 +0100)
committerDan Winship <danw@gnome.org>
Wed, 8 Dec 2010 19:42:57 +0000 (20:42 +0100)
commit09cd9d0414f40c3f5a9c6ded4908d3ff7d1c6dde
tree977b805c4d8f55e8c1d355ea8de351cbb5a687b1
parent23592af1629ecfe8c401925eadc99e5796a70e98
gnutls: fix g_pollable_input_stream_is_readable() implementation

Don't test the underlying input stream for readability unless a
previous read attempt returned EAGAIN; gnutls may be buffering data
internally, so we have to just assume we're readable until we see an
EAGAIN.
tls/gnutls/gtlsconnection-gnutls.c