diff options
author | David Troy <dave@popvox.com> | 2006-04-03 18:14:45 +0000 |
---|---|---|
committer | David Troy <dave@popvox.com> | 2006-04-03 18:14:45 +0000 |
commit | ecc49089c697a2cb7331358def5ce7640fae65bf (patch) | |
tree | 70c13967ededb98deb4e28caffb80d7b4155154c /src/http.c | |
parent | f1ae22daac2c0e4fe9777942f50d5a3af0470744 (diff) | |
download | astmanproxy-ecc49089c697a2cb7331358def5ce7640fae65bf.tar.gz astmanproxy-ecc49089c697a2cb7331358def5ce7640fae65bf.tar.xz astmanproxy-ecc49089c697a2cb7331358def5ce7640fae65bf.zip |
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@73 f02b47b9-160a-0410-81a6-dc3441afb0ec
Diffstat (limited to 'src/http.c')
-rw-r--r-- | src/http.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -66,8 +66,8 @@ int _read(struct mansession *s, struct message *m) { char line[MAX_LEN], method[10], formdata[MAX_LEN], header[MAX_LEN]; int res, clength = 0; - if (s->inputcomplete) - return 0; + if (s->dead) + return -1; memset(method, 0, sizeof method); memset(formdata, 0, sizeof formdata); @@ -107,7 +107,6 @@ int _read(struct mansession *s, struct message *m) { BuildHTTPHeader(header); pthread_mutex_lock(&s->lock); - s->inputcomplete = 1; ast_carefulwrite(s->fd, header, strlen(header), s->writetimeout); pthread_mutex_unlock(&s->lock); debugmsg("header: %s", header); |