Added the remote_content_length variable to store the number of bytes the
remote server is supposed to be transmiting to the client.
This commit is contained in:
parent
52fa476b21
commit
ce06f27a35
@ -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
|
* Create and free the connection structure. One day there could be
|
||||||
* other connnection related tasks put here, but for now the header
|
* 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->protocol.major = connptr->protocol.minor = 0;
|
||||||
|
|
||||||
|
connptr->remote_content_length = -1;
|
||||||
|
|
||||||
update_stats(STAT_OPEN);
|
update_stats(STAT_OPEN);
|
||||||
|
|
||||||
return connptr;
|
return connptr;
|
||||||
|
@ -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.
|
* See 'conns.c' for a detailed description.
|
||||||
*
|
*
|
||||||
@ -36,6 +36,9 @@ struct conn_s {
|
|||||||
bool_t connect_method;
|
bool_t connect_method;
|
||||||
bool_t response_message_sent;
|
bool_t response_message_sent;
|
||||||
|
|
||||||
|
/* A Content-Length value from the remote server */
|
||||||
|
long remote_content_length;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Store the incoming request's HTTP protocol.
|
* Store the incoming request's HTTP protocol.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user