diff options
author | Eric Wong <e@80x24.org> | 2014-09-07 02:40:44 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-09-17 03:15:25 +0000 |
commit | 4b2782a926d8f131b1e7382be35e3abb77bf4be5 (patch) | |
tree | 31e3a624681fe164cb563658039d81025ffb2de2 /lib | |
parent | b068871e4ca352048faf8db13d600ccdc429718d (diff) | |
download | unicorn-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')
0 files changed, 0 insertions, 0 deletions