Skip to content

Commit

Permalink
change threshold for combining headers and body from 1024 bytes to 81…
Browse files Browse the repository at this point in the history
…92 (slightly faster if the client is running on the same machine, no unnecessary side-effects in performance)
  • Loading branch information
kazuho committed Mar 18, 2013
1 parent bb782fa commit 39a2cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Starlet/Server.pm
Expand Up @@ -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},
Expand Down

0 comments on commit 39a2cb9

Please sign in to comment.