summaryrefslogtreecommitdiff
path: root/src/stream.h
Commit message (Collapse)AuthorAgeFilesLines
* [config] support include file glob (fixes #1221)Glenn Strauss2016-05-131-1/+1
| | | | | | x-ref: "support *(wild card character) within include directive" https://redmine.lighttpd.net/issues/1221
* fallback to lseek()/read() if mmap() fails (#fixes 2666)Glenn Strauss2016-04-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fallback to lseek()/read() if mmap() fails (#fixes 2666) e.g. when mmap() is used on lighttpd-controlled temporary files used POST request body (mod_cgi) and PUT file upload (mod_webdav) replace use of stream_open() on potentially untrusted files (protect against SIGBUS if a file is modified while map is read) Note: stream.[ch] may be removed in a future release For now, stream.[ch] will read entire file into memory if mmap fails and so it should only be used on trusted files, e.g. config files. http_auth basic and digest files are typically small and so buffered stdio fopen(), fgets(), fclose() will likely be approximately as fast as mmap. mod_dirlisting header and readme files are typically small and so open(), read(), close() will typically be approximately as fast as mmap mod_ssi will likely be much faster, now buffering SSI page construction rather than a potentially huge number of file open() calls, one for each tiny chunk of text between SSI directives. mod_webdav COPY and MOVE may be slower due to removal of mmap, but are now more resilient to partial writes. x-ref: "handle filesystems without mmap() support" https://redmine.lighttpd.net/issues/2666 "WebDAV upload-> mmap failed: operation not permitted" https://redmine.lighttpd.net/issues/962 "Lighttpd 1.4.20 Crash (SIGBUS in mod_compress)" https://redmine.lighttpd.net/issues/1879 "Crash SIGBUS" https://redmine.lighttpd.net/issues/2391 github: closes #57
* consistent inclusion of config.h at top of files (fixes #2073)Glenn Strauss2016-03-191-0/+1
| | | | | | From: Glenn Strauss <gstrauss@gluelogic.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3113 152afb58-edef-0310-8abb-c4023f1b3aa9
* moved everything below trunk/ and added branches/ and tags/Jan Kneschke2005-02-201-0/+14
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@30 152afb58-edef-0310-8abb-c4023f1b3aa9