History log of /lighttpd1.4/src/chunk.h (Results 1 – 25 of 65)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: lighttpd-1.4.69, lighttpd-1.4.68, lighttpd-1.4.67, lighttpd-1.4.66, lighttpd-1.4.65
# 2d1b1672 13-Feb-2022 Glenn Strauss <[email protected]>

[core] chunk_file_pread() to wrap pread()


# e05ce805 08-Feb-2022 Glenn Strauss <[email protected]>

[multiple] shared code for struct chunk and mmap

chunkqueue_chunk_file_view()

reduces size of struct chunk

use mmap with mod_deflate libdeflate, if mmap available,
even when lighttpd not built w

[multiple] shared code for struct chunk and mmap

chunkqueue_chunk_file_view()

reduces size of struct chunk

use mmap with mod_deflate libdeflate, if mmap available,
even when lighttpd not built with --enable-mmap

avoid using mmap on temp files in chunkqueue (c->file.is_temp)
since pread() with a reasonable block size is typically as fast
or faster than mmap on files read sequentially and used only once,
especially when writing results to limited-size socket buffers
(and lighttpd temp files are, in most cases, by default about 1 MB)
(Exception: sometimes mmap is used for convenience or to fulfill
a requirement, e.g. one-shot libdeflate in mod_deflate)
(There are many factors which influence speed of mmap versus pread,
so this should not be construed as generic usage advice.)

show more ...


Revision tags: lighttpd-1.4.64, lighttpd-1.4.63, lighttpd-1.4.62
# 563eaea0 29-Oct-2021 Glenn Strauss <[email protected]>

[core] 'struct log_error_st' -> 'log_error_st'

typedef redefinitions may cause issues with older compilers

(The intention behind the decls and defines were done to reduce the
number of unrelated l

[core] 'struct log_error_st' -> 'log_error_st'

typedef redefinitions may cause issues with older compilers

(The intention behind the decls and defines were done to reduce the
number of unrelated lines modified for the transition to fdlog_st)

x-ref:
https://trac.macports.org/ticket/63667
https://github.com/macports/macports-ports/pull/12658

show more ...


# d361f9cc 29-Oct-2021 Glenn Strauss <[email protected]>

[core] clean up fdlog_st and log_error_st decls

typedef redefinitions may cause issues with older compilers

(The intention behind the decls and defines were done to reduce the
number of unrelated

[core] clean up fdlog_st and log_error_st decls

typedef redefinitions may cause issues with older compilers

(The intention behind the decls and defines were done to reduce the
number of unrelated lines modified for the transition to fdlog_st)

x-ref:
https://trac.macports.org/ticket/63667
https://github.com/macports/macports-ports/pull/12658

show more ...


Revision tags: lighttpd-1.4.61
# 71544129 17-Oct-2021 Glenn Strauss <[email protected]>

[core] expose chunkqueue_remove_empty_chunks()

expose chunkqueue_remove_empty_chunks() for use in error recovery
when aborting a chunkqueue_append_buffer_open*()


# 575665ad 05-Oct-2021 Glenn Strauss <[email protected]>

[multiple] __attribute_nonnull__ now takes params

define __attribute_nonnull__(params) with params to match
recent changes in glibc development (targetting glibc 2.35 in Feb 2022)

x-ref:
new __at

[multiple] __attribute_nonnull__ now takes params

define __attribute_nonnull__(params) with params to match
recent changes in glibc development (targetting glibc 2.35 in Feb 2022)

x-ref:
new __attribute_nonnull__(params) conflicts with third-party
https://sourceware.org/bugzilla/show_bug.cgi?id=28425

show more ...


Revision tags: lighttpd-1.4.60
# 6e62b842 22-Sep-2021 Glenn Strauss <[email protected]>

[core] splice() data from backends to tempfiles

splice() data from backends to tempfiles (where splice() is available);
reduce copying data to userspace when writing data to tempfiles

Note: splice(

[core] splice() data from backends to tempfiles

splice() data from backends to tempfiles (where splice() is available);
reduce copying data to userspace when writing data to tempfiles

Note: splice() on Linux returns EINVAL if target file has O_APPEND set
so lighttpd uses pwrite() (where available) when writing to tempfiles
(instead of lseek() + write(), or O_APPEND and write())

show more ...


# d59d5e59 17-Sep-2021 Glenn Strauss <[email protected]>

[core] improve chunk buffer reuse from backends

improve oversized chunk buffer reuse from backends


# 7b615d5d 12-Sep-2021 Glenn Strauss <[email protected]>

[multiple] de-dup file and piped loggers (fixes #3101)

de-dup file and piped loggers for error logs and access logs

x-ref:
"RFE: de-dup file and piped loggers"
https://redmine.lighttpd.net/issu

[multiple] de-dup file and piped loggers (fixes #3101)

de-dup file and piped loggers for error logs and access logs

x-ref:
"RFE: de-dup file and piped loggers"
https://redmine.lighttpd.net/issues/3101

show more ...


# a3e9faa4 09-Sep-2021 Glenn Strauss <[email protected]>

[multiple] quiet coverity warnings


# bd72d192 29-Aug-2021 Glenn Strauss <[email protected]>

[core] remove server.upload-temp-file-size limit

previously undocumented server.upload-temp-file-size in lighttpd 1.4.38
preceded introduction of lighttpd streaming options in lighttpd 1.4.40
(serve

[core] remove server.upload-temp-file-size limit

previously undocumented server.upload-temp-file-size in lighttpd 1.4.38
preceded introduction of lighttpd streaming options in lighttpd 1.4.40
(server.stream-request-body and server.stream-response-body)

show more ...


# 9ee17ae2 25-Mar-2021 Glenn Strauss <[email protected]>

[core] mark some chunk.h funcs attr cold


# ce74705c 26-Feb-2021 Glenn Strauss <[email protected]>

[core] chunkqueue_append_cq_range()


Revision tags: lighttpd-1.4.59, lighttpd-1.4.58
# 2639e5ae 27-Dec-2020 Glenn Strauss <[email protected]>

[multiple] chunkqueue_write_chunk()

create API in chunk.[ch] for writing a chunk to an fd

(pull similar code from mod_cgi and mod_webdav)

This new API is intended for use on request body input, wh

[multiple] chunkqueue_write_chunk()

create API in chunk.[ch] for writing a chunk to an fd

(pull similar code from mod_cgi and mod_webdav)

This new API is intended for use on request body input, which is
written to size-limited temporary files controlled by lighttpd and
written to files or pipes.

(network_backend_write() is for writing chunkqueues to sockets)

show more ...


# 7ba521ff 24-Dec-2020 Glenn Strauss <[email protected]>

[core] reuse large mem chunks (fix mem usage) (fixes #3033)

(thx flynn)

fix large memory usage for large file downloads from dynamic backends

reuse or release large memory chunks

x-ref:
"Memory

[core] reuse large mem chunks (fix mem usage) (fixes #3033)

(thx flynn)

fix large memory usage for large file downloads from dynamic backends

reuse or release large memory chunks

x-ref:
"Memory Growth with PUT and full buffered streams"
https://redmine.lighttpd.net/issues/3033

show more ...


Revision tags: lighttpd-1.4.57, lighttpd-1.4.56, lighttpd-1.4.56-rc7, lighttpd-1.4.56-rc6, lighttpd-1.4.56-rc5, lighttpd-1.4.56-rc4, lighttpd-1.4.56-rc3, lighttpd-1.4.56-rc2, lighttpd-1.4.56-rc1
# 6be2bd35 20-Oct-2020 Glenn Strauss <[email protected]>

[core] FILE_CHUNK can hold stat_cache_entry ref


# 3f1a12e5 14-Oct-2020 Glenn Strauss <[email protected]>

[multiple] remove chunk file.start member

c->offset is now offset into file
c->file.length is end of octets to send (end pos + 1)
c->file.length - c->offset is num of octets to send


# e18da93e 11-Oct-2020 Glenn Strauss <[email protected]>

[core] reuse chunkqueue_compact_mem*()


# 81029b8b 29-Sep-2020 Glenn Strauss <[email protected]>

[multiple] inline chunkqueue where always alloc'd

inline struct chunkqueue where always allocated in other structs

(memory locality)


# 6c68e149 23-Sep-2020 Glenn Strauss <[email protected]>

[core] chunkqueue_{peek,read}_data(), squash

chunkqueue_peek_data(), chunkqueue_read_data(), chunkqueue_read_squash()
shared code for chunkqueue manipulation


# 97e314fc 08-Sep-2020 Glenn Strauss <[email protected]>

[multiple] inline chunkqueue_length()


# 9f8a8968 08-Sep-2020 Glenn Strauss <[email protected]>

[mod_ssi] update chunk after shell output redirect

chunkqueue_update_file() to update size of file chunk after
redirecting shell output to file fd


# 5fd8a26a 03-Sep-2020 Glenn Strauss <[email protected]>

[core] defer optimization to read small files

defer optimization to read small files into memory until after
response_start hooks have a chance to run, e.g. until after
mod_deflate chooses whether o

[core] defer optimization to read small files

defer optimization to read small files into memory until after
response_start hooks have a chance to run, e.g. until after
mod_deflate chooses whether or not to serve file from compressed
cache, if deflate.cache-dir is configured

show more ...


# e1bb5793 10-Aug-2020 Glenn Strauss <[email protected]>

[core] disperse settings.h to appropriate headers


Revision tags: lighttpd-1.4.55
# 9914bb29 18-Jan-2020 Glenn Strauss <[email protected]>

[core] C99 restrict on some base funcs

buffer.[ch], chunk.[ch], request.[ch], sock_addr.[ch]


123