summaryrefslogtreecommitdiffstats
path: root/src/http.c
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-04-03 18:14:45 +0000
committerDavid Troy <dave@popvox.com>2006-04-03 18:14:45 +0000
commitecc49089c697a2cb7331358def5ce7640fae65bf (patch)
tree70c13967ededb98deb4e28caffb80d7b4155154c /src/http.c
parentf1ae22daac2c0e4fe9777942f50d5a3af0470744 (diff)
downloadastmanproxy-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http.c b/src/http.c
index 3b271b9..91c3de0 100644
--- a/src/http.c
+++ b/src/http.c
@@ -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);