diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-11-14 18:43:03 +0800 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-11-14 18:43:03 +0800 | 
| commit | 80acb6db8133ebd16c3257d33721994ed164ba9f (patch) | |
| tree | 68775e4feeb4aa81f19524a8389d5a8d7ad91b8b /lib/http_client.c | |
| parent | 03a8f8ec82719512f059fdd2c0dca3bb919b059c (diff) | |
GnuTLS now also needs ssl_pending() implemented. Bug #860.
Diffstat (limited to 'lib/http_client.c')
| -rw-r--r-- | lib/http_client.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| 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 | 
