https://issues.apache.org/bugzilla/show_bug.cgi?id=46688
--- Comment #6 from Greg Ames <[email protected]> 2009-03-31 08:00:04 PST --- I believe this and other bugs we've seen with truncated files could be solved by switching from stat() followed by open() to open() followed by fstat(). That lets us work with the same version of the file throughout a request, and makes it easy to detect a zero length file and abort before any harm is done. It also saves the kernel from having to do a path walk for the stat(), a potential performance/scalability improvement. Unfortunately it's not clear how to implement this change in httpd because we use the finfo early and depend on the handlers to open the file. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
