httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Edmundsson <>
Subject Re: apr_brigade_insert_file() LFS/Linux issues
Date Thu, 04 May 2006 10:29:22 GMT
On Thu, 4 May 2006, Joe Orton wrote:

>>> OK, what filesystem?  Colm had reported the same thing on Debian/IA64,
>>> which was on an NFS mount, IIRC.  If you adjust apr_brigade_insert_file
>>> to only allow buckets of MAX_BUCKET_SIZE regardless, i.e. change the
>>> conditional to:
>> This was on XFS and on an NFS mount. It should be noted that this
>> works on a 32bit (also Ubuntu Breezy) machine with identical config.
> Can you try it on a local ext3 filesystem?
> At what file size does it start failing like this?

I'll do some testing and report back.

> ...
>> To me this looks like you'll get sendfile instead of sendfile64 unless
>> you have asked for LFS-stuff, even on a 64bit platform.
> Ignore that stuff.  sendfile64() is not needed on 64-bit platforms, the
> normal sendfile() takes an off_t which is already 64-bit.  sendfile64 is
> needed on 32-bit platforms where the native off_t is 32-bit and APR is
> using off64_t instead.

I have a faint memory of sendfile() indeed being non-LFS since it's 
needed for 32bit emulation, but I can't remember if that was a bug or 

  Niklas Edmundsson, Admin @ {acc,hpc2n}      |
  Fuzzy logic: A Vulcan contemplating a Tribble

View raw message