Permalink
Browse files

change threshold for combining headers and body from 1024 bytes to 81…

…92 (slightly faster if the client is running on the same machine, no unnecessary side-effects in performance)
  • Loading branch information...
1 parent bb782fa commit 39a2cb9c5354f12e4163e4cbd06f3168f7ddd59a @kazuho committed Mar 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Starlet/Server.pm
@@ -262,7 +262,7 @@ sub _handle_response {
push @lines, "\015\012";
if (defined $body && ref $body eq 'ARRAY' && @$body == 1
- && length $body->[0] < 1024) {
+ && length $body->[0] < 8192) {
# combine response header and small request body
$self->write_all(
$conn, join('', @lines, $body->[0]), $self->{timeout},

0 comments on commit 39a2cb9

Please sign in to comment.