Skip to content

Commit

Permalink
extend FAQ answer about inactivity timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 20, 2011
1 parent a7e5181 commit c728047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/Mojolicious/Guides/FAQ.pod
Expand Up @@ -84,7 +84,8 @@ To protect your applications from denial-of-service attacks, all connections
have an inactivity timeout which limits how long a connection may be inactive
before being dropped automatically. It defaults to C<20> seconds for the user
agent and C<15> seconds for all built-in servers, and is commonly referred to
as C<inactivity_timeout>.
as C<inactivity_timeout>. This timeout always applies, so you might have to
tweak it for applications that take a long time to process a request.

=head2 What does "Premature connection close." mean?

Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -97,7 +97,7 @@ sub register {
# Content
unless (defined $_[-1] && ref $_[-1] eq 'CODE') {
@url = (shift);
push @_, sub { xml_escape $content}
push @_, $content;
}

# Captures
Expand Down Expand Up @@ -289,7 +289,7 @@ sub _input {
sub _tag {
my ($self, $name) = (shift, shift);

# Callback
# Content
my $cb = defined $_[-1] && ref($_[-1]) eq 'CODE' ? pop @_ : undef;
my $content = pop if @_ % 2;
$content = xml_escape $content if defined $content;
Expand Down

0 comments on commit c728047

Please sign in to comment.