From 29d07a92570d56ce015c78939ffac26d771004bb Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 8 Nov 2010 09:46:07 +0900 Subject: [PATCH] Fix issue with non-blocking TLS connections --- gweb/gweb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gweb/gweb.c b/gweb/gweb.c index dcd5be5..72c5cfd 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -384,7 +384,8 @@ static gboolean process_send_buffer(struct web_session *session) count = buf->len; if (count == 0) { - if (session->more_data == FALSE) + if (session->request_started == TRUE && + session->more_data == FALSE) session->body_done = TRUE; return FALSE; -- 2.7.4