diff options
Diffstat (limited to '')
-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. */ |