diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-11 20:27:51 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-11 20:27:51 +0000 |
commit | ce06f27a3518e62da072eb21da0847578c72d86d (patch) | |
tree | e44fa7717187a3f5a16175fdd04c6cd8d1dc1b45 /src | |
parent | 52fa476b21e03e63f68461908a3e910370bf40ca (diff) |
Added the remote_content_length variable to store the number of bytes the
remote server is supposed to be transmiting to the client.
Diffstat (limited to 'src')
-rw-r--r-- | src/conns.c | 4 | ||||
-rw-r--r-- | src/conns.h | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/conns.c b/src/conns.c index 7bf86b2..683e34b 100644 --- a/src/conns.c +++ b/src/conns.c @@ -1,4 +1,4 @@ -/* $Id: conns.c,v 1.7 2002-04-07 21:32:01 rjkaes Exp $ +/* $Id: conns.c,v 1.8 2002-04-11 20:27:51 rjkaes Exp $ * * Create and free the connection structure. One day there could be * other connnection related tasks put here, but for now the header @@ -62,6 +62,8 @@ initialize_conn(int client_fd) connptr->protocol.major = connptr->protocol.minor = 0; + connptr->remote_content_length = -1; + update_stats(STAT_OPEN); return connptr; diff --git a/src/conns.h b/src/conns.h index a0a31a9..fa412fe 100644 --- a/src/conns.h +++ b/src/conns.h @@ -1,4 +1,4 @@ -/* $Id: conns.h,v 1.6 2002-04-07 21:32:01 rjkaes Exp $ +/* $Id: conns.h,v 1.7 2002-04-11 20:27:51 rjkaes Exp $ * * See 'conns.c' for a detailed description. * @@ -36,6 +36,9 @@ struct conn_s { bool_t connect_method; bool_t response_message_sent; + /* A Content-Length value from the remote server */ + long remote_content_length; + /* * Store the incoming request's HTTP protocol. */ |