You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ryan Morgan <rm...@covalent.net> on 2002/02/21 02:12:43 UTC
[PATCH] core.c
Hey everyone,
There is a problem on systems with largefile support (such as windows 2000)
when downloading a file that is larger than AP_MAX_SENDFILE (16777216)
with keepalives turned off.
When largefile support is enabled, we split up files larger
AP_MAX_SENDFILE into several file buckets. Just before we call sendfile,
we set the APR_SENDFILE_DISCONNECT_SOCKET flag, even if there are more
file buckets sitting in the brigade. The result is truncated file of
size 16777216, since the socket has been closed after the first call to
sendfile.
This patch disables setting this flag unless we are the last file bucket
in the brigade. I've also attached a patch that fixes a comment in
httpd.h
Thanks,
-Ryan
Re: [PATCH] core.c
Posted by "William A. Rowe, Jr." <wr...@covalent.net>.
Committed, thanks!
----- Original Message -----
From: "Ryan Morgan" <rm...@covalent.net>
To: <ht...@apache.org>
Sent: Wednesday, February 20, 2002 7:12 PM
Subject: [PATCH] core.c
>
> Hey everyone,
>
> There is a problem on systems with largefile support (such as windows 2000)
> when downloading a file that is larger than AP_MAX_SENDFILE (16777216)
> with keepalives turned off.
>
> When largefile support is enabled, we split up files larger
> AP_MAX_SENDFILE into several file buckets. Just before we call sendfile,
> we set the APR_SENDFILE_DISCONNECT_SOCKET flag, even if there are more
> file buckets sitting in the brigade. The result is truncated file of
> size 16777216, since the socket has been closed after the first call to
> sendfile.
>
> This patch disables setting this flag unless we are the last file bucket
> in the brigade. I've also attached a patch that fixes a comment in
> httpd.h
>
> Thanks,
>
> -Ryan
>