about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-08 05:14:55 +0000
committerEric Wong <normalperson@yhbt.net>2010-07-08 05:23:35 +0000
commit1cd698f8c7938b1f19e9ba091708cb4515187939 (patch)
tree65c8f20247c74e10f65982c6d2d878f37632fd45 /test
parent98c51edf8b6f031a655a93b52808c9f9b78fb6fa (diff)
downloadunicorn-1cd698f8c7938b1f19e9ba091708cb4515187939.tar.gz
Different threads may change $/ during execution, so cache it at
function entry to a local variable for safety.  $/ may also be
of a non-binary encoding, so rely on Rack::Utils.bytesize to
portably capture the correct size.

Our string slicing is always safe from 1.9 encoding: both our
socket and backing temporary file are opened in binary mode,
so we'll always be dealing with binary strings in this class
(in accordance to the Rack spec).
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions