Skip to content

Commit

Permalink
use a little less code for keep_alive_requests check
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 22, 2015
1 parent c4cb9c7 commit ec5c5cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -23,10 +23,8 @@ sub configure {
$self->upgrade_timeout($c->{upgrade_timeout}) if $c->{upgrade_timeout};

# DEPRECATED in Tiger Face!
deprecated
'The keep_alive_requests setting is DEPRECATED in favor of requests'
and $c->{requests} = $c->{keep_alive_requests}
if $c->{keep_alive_requests};
deprecated 'keep_alive_requests setting is DEPRECATED in favor of requests'
if !$c->{requests} && ($c->{requests} ||= $c->{keep_alive_requests});

# Prefork settings
$prefork->reverse_proxy($c->{proxy}) if defined $c->{proxy};
Expand Down

0 comments on commit ec5c5cb

Please sign in to comment.