Project

General

Profile

Actions

Bug #135

closed

Incorrect detection of sendfile functionality with Large File Support

Added by Anonymous almost 19 years ago. Updated almost 17 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

There are a number of Linux systems on which sendfile is not implemented for 64bit files, i.e. under Large File Support. However for a number of reasons these aren't detected by lighttpd's configure script, leading to a daemon which runs but cannot send any files.

The fixes I propose are as follows (both in configure.in):
1. Move Large File Support configuration before sendfile testing.
2. Make the sendfile test include sys/sendfile.h if it exists, otherwise by default a 32bit copy of sendfile will be linked as the system headers which macro sendfile to sendfile64 have not been loaded.

For a patch including both see http://www.perlfu.co.uk/code/lighttpd/lighttpd-1.3.13-broken-lfs-sendfile.diff.

I believe this altered configure should be compatible with platforms other than GNU/Linux, however I have not tested it.

-- critson


Files

lighttpd-1.3.13-broken-lfs-sendfile.diff (1.69 KB) lighttpd-1.3.13-broken-lfs-sendfile.diff http://www.perlfu.co.uk/code/lighttpd/lighttpd-1.3.13-broken-lfs-sendfile.diff -- critson Anonymous, 2005-05-22 08:44
Actions #1

Updated by jan almost 19 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

applied in r397 to the 1.3.x tree and r398 in 1.4.x

Actions

Also available in: Atom