[pkg-lighttpd] Bug#349643: sendfile errors cause partial file transfers

Michal Čihař michal at cihar.com
Tue Jan 24 10:13:18 UTC 2006


Package: lighttpd
Version: 1.4.9-3
Severity: important

Hi

I already had this problem before lighttpd entered Debian, but as I
needed to compile it by myself anyway it was not so serious problem.

There is some problem with sendfile on specific systems (vServer, quite
low memory) what leads to sending partial file content and throwing
errors to log:

(network_linux_sendfile.c.171) sendfile failed: Value too large for defined data type 6 
(connections.c.536) connection closed: write failed on fd 6 

Maybe there are not handled some error codes from sendfile, but I didn't
yet find time to check sources.

Workaround for this is to disable sendfile, but this can be
unfortunately done only at compile time [1]. I know this is performance
trade-off, but it works for me.

1. http://www.lighttpd.net/documentation/performance.html#network-handlers

I hope you will find some good solution.

    Michal Čihař


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.14.4-vs2.1.0
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages lighttpd depends on:
ii  libbz2-1.0                    1.0.3-2    high-quality block-sorting file co
ii  libc6                         2.3.5-12   GNU C Library: Shared libraries an
ii  libldap2                      2.1.30-12  OpenLDAP libraries
ii  libpcre3                      6.4-1.1    Perl 5 Compatible Regular Expressi
ii  libssl0.9.8                   0.9.8a-6   SSL shared libraries
ii  lsb-base                      3.0-14     Linux Standard Base 3.0 init scrip
ii  mime-support                  3.35-1     MIME files 'mime.types' & 'mailcap
ii  zlib1g                        1:1.2.3-9  compression library - runtime

Versions of packages lighttpd recommends:
ii  php4-cgi                      4:4.4.2-1  server-side, HTML-embedded scripti
ii  php5-cgi                      5.1.2-1    server-side, HTML-embedded scripti

-- no debconf information




More information about the pkg-lighttpd-maintainers mailing list