about summary refs log tree commit homepage
path: root/lib/unicorn/worker.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-09-07 02:40:44 +0000
committerEric Wong <e@80x24.org>2014-09-17 03:15:25 +0000
commit4b2782a926d8f131b1e7382be35e3abb77bf4be5 (patch)
tree31e3a624681fe164cb563658039d81025ffb2de2 /lib/unicorn/worker.rb
parentb068871e4ca352048faf8db13d600ccdc429718d (diff)
downloadunicorn-4b2782a926d8f131b1e7382be35e3abb77bf4be5.tar.gz
This allows the parser struct to fit in one cache line on
x86-64 systems where cache lines are 64 bytes.

Using 32-bit integer lengths is safe here because these are only for
tracking offsets within the HTTP header buffer.  We can safely limit
HTTP headers and in-memory buffers to be less than 4GB without
anybody complaining.

HTTP bodies continue to use off_t (usually 64-bit, even on 32-bit
systems) sizes and support as much as the OS/hardware can handle.
Diffstat (limited to 'lib/unicorn/worker.rb')
0 files changed, 0 insertions, 0 deletions