Skip to content

Commit

Permalink
also mention how to increase the inactivity timeout in Mojolicious::C…
Browse files Browse the repository at this point in the history
…ontroller
  • Loading branch information
kraih committed Feb 27, 2012
1 parent 2b6716a commit df7ed5f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

2.56 2012-02-28 00:00:00
- Improved documentation.

2.55 2012-02-28 00:00:00
- Combined WebSocket timeout with normal inactivity timeout.
- Improved documentation.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -32,7 +32,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Leaf Fluttering In Wind';
our $VERSION = '2.55';
our $VERSION = '2.56';

# "These old doomsday devices are dangerously unstable.
# I'll rest easier not knowing where they are."
Expand Down
6 changes: 6 additions & 0 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -929,6 +929,12 @@ EXPERIMENTAL and might change without warning!
# Send "Ping" frame
$c->send([1, 0, 0, 0, 9, 'Hello World!']);
For mostly idle WebSockets you might also want to increase the connection
timeout, which usually defaults to C<15> seconds.
# Increase timeout for current connection to 300 seconds
Mojo::IOLoop->stream($c->tx->connection)->timeout(300);
=head2 C<session>
my $session = $c->session;
Expand Down

0 comments on commit df7ed5f

Please sign in to comment.