summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-11-08 09:46:07 +0900
committerMarcel Holtmann <marcel@holtmann.org>2010-11-08 09:46:07 +0900
commit29d07a92570d56ce015c78939ffac26d771004bb (patch)
treec86a5dbc17585dc43a5a60cfc796fac87b8fb6ca /gweb
parent29424a8223c0ffe82b1bfdbd35ed15b67dcf44eb (diff)
downloadconnman-29d07a92570d56ce015c78939ffac26d771004bb.tar.gz
connman-29d07a92570d56ce015c78939ffac26d771004bb.tar.bz2
connman-29d07a92570d56ce015c78939ffac26d771004bb.zip
Fix issue with non-blocking TLS connections
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gweb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c
index dcd5be58..72c5cfdd 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;