Fix issue with non-blocking TLS connections
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Nov 2010 00:46:07 +0000 (09:46 +0900)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Nov 2010 00:46:07 +0000 (09:46 +0900)
gweb/gweb.c

index dcd5be5..72c5cfd 100644 (file)
@@ -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;