http: delay CoW string invalidations in filter_body
commit12024a6268d4e96fcf96df33fb7d82eaec9c16b1
authorEric Wong <normalperson@yhbt.net>
Wed, 15 Jun 2011 00:20:26 +0000 (15 00:20 +0000)
committerEric Wong <normalperson@yhbt.net>
Wed, 15 Jun 2011 00:20:26 +0000 (15 00:20 +0000)
tree68c2b498e228b9809d9c5af220f840b9a8f7075b
parentd91ca210615432bdad3ee70c08908ea7064c6b95
http: delay CoW string invalidations in filter_body

Not all invocations of filter_body will trigger CoW on the
given destination string.  We can also avoid an unnecessary
rb_str_set_len() in the non-chunked path, too.
ext/unicorn_http/unicorn_http.rl