From 80acb6db8133ebd16c3257d33721994ed164ba9f Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 14 Nov 2011 18:43:03 +0800 Subject: GnuTLS now also needs ssl_pending() implemented. Bug #860. --- lib/http_client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/http_client.c') diff --git a/lib/http_client.c b/lib/http_client.c index 84914388..8bd543af 100644 --- a/lib/http_client.c +++ b/lib/http_client.c @@ -239,7 +239,10 @@ static gboolean http_incoming_data( gpointer data, int source, b_input_condition req->ssl ? ssl_getdirection( req->ssl ) : B_EV_IO_READ, http_incoming_data, req ); - return FALSE; + if( ssl_pending( req->ssl ) ) + return http_incoming_data( data, source, cond ); + else + return FALSE; got_reply: /* Maybe if the webserver is overloaded, or when there's bad SSL -- cgit v1.2.3