]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Modify the content-length filter to change the criteria used to determine
authorRyan Bloom <rbb@apache.org>
Tue, 21 Nov 2000 20:17:20 +0000 (20:17 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 21 Nov 2000 20:17:20 +0000 (20:17 +0000)
commitc7730616536c2eb365c6be4ac87d546f353859a2
treecfa16aa2c2b9b14480ac39635c7babdb15a2a6d6
parent14e329df8385c535c29840e85ec18479f8648a98
Modify the content-length filter to change the criteria used to determine
if/when we compute the content-length.  There are just a few cases now:

        1) We already have all the data
        2) We don't have all the data and:
                2a)  This is a 1.1 request but we can't chunk
                2b)  The is a keep-alive request
    In the future, we probably want to modify this to not
    be a keep-alive request.

This filter always buffers 9K of data.  The reason is simple, the core will
buffer 9K at a time anyway, and there is a chance that we may get the end
of the request before we hit 9K.  This increases our chances of being able
to send a c-l.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87055 13f79535-47bb-0310-9956-ffa450edef68
include/http_core.h
modules/http/http_core.c
modules/http/http_protocol.c