Added the remote_content_length variable to store the number of bytes the

remote server is supposed to be transmiting to the client.
master
Robert James Kaes 2002-04-11 20:27:51 +00:00
parent 52fa476b21
commit ce06f27a35
2 changed files with 7 additions and 2 deletions

View File

@ -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;

View File

@ -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.
*/