Skip to content

Commit

Permalink
show how the connection timeout can be increased for long polling
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 27, 2011
1 parent eac0cb1 commit 1c8971d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -1068,6 +1068,12 @@ once all data has been written to the kernel send buffer or equivalent.
});
});
For Comet (C<long polling>) you might also want to increase the connection
inactivity timeout.
# Increase timeout for current connection to 300 seconds
Mojo::IOLoop->connection_timeout($c->tx->connection => 300);
=head2 C<write_chunk>
$c->write_chunk;
Expand Down

0 comments on commit 1c8971d

Please sign in to comment.