httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@imdb.com (Rob Hartill)
Subject Re: troubles ....
Date Wed, 03 Jul 1996 14:27:01 GMT

thanks. we'll look into these points.

regards,
rob


>I encountered some strange things in your code ..
>
>
>1) set_content_length in http_protocol.c doesn't use the second parameter  clength
>    but always finfo.st_size
>
> int set_content_length (request_rec *r, long clength)
>{
>    char ts[MAX_STRING_LEN];
>    
>    sprintf (ts, "%ld", (long)r->finfo.st_size);
>    table_set (r->headers_out, "Content-length", pstrdup (r->pool, ts));
>    return 0;
>}
>
>
>2) set_keepalive :
>   if the server send something which hasn't the content_length set, 
>   the value of r->connection->keepalive is zero as set in http_request.c and when
flow
>control goes back to the while in http_main.c it sees that r->connection->keepalive
>   is zero and the server ( i mean that child) doesn't keep the connection alive     
>anymore.


-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.

Mime
View raw message