Ticket #1599 (new defect)

Opened 4 months ago

Last modified 4 months ago

Lighttpd 1.5 - Threaded stat() sends corrupted data when a file's content changes

Reported by: Frank Denis Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: core Version: 1.5.x-svn
Severity: normal Keywords: threaded stat corruption
Cc: mail@nerdbase.de Blocking:
Need Feedback: 0

Description

When the content of a static file changes, lighty 1.5 threaded stat() gets a file size, then when read() occurs, the length is no more the right one and lighty sends corrupted data.

network_gthread_aio.c.388: (error) read() returned 333 instead of 383
connections.c.1381: (trace) (network-subsys sent us a fatal-error)

Since there's no real workaround for this, it would be nice to have an option to disable threaded stat() for specific directories.

Attachments

Change History

03/18/2008 02:23:44 PM changed by nitrox

  • cc set to mail@nerdbase.de.

with server.use-noatime="enable" i see some weirdness on different backends too, so is it enabled on this setup? if so, disabling it causes the same behaviour?

also some more info´s on your setup, read/stat-threads and stuff?


Add/Change #1599 (Lighttpd 1.5 - Threaded stat() sends corrupted data when a file's content changes)




Change Properties