Skip to content

Commit

Permalink
mention that the transaction is weakened
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 29, 2013
1 parent 5e749b4 commit 3890c11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -514,7 +514,10 @@ L<Mojolicious::Routes::Match> object.
$c = $c->tx(Mojo::Transaction::HTTP->new);
The transaction that is currently being processed, usually a
L<Mojo::Transaction::HTTP> or L<Mojo::Transaction::WebSocket> object.
L<Mojo::Transaction::HTTP> or L<Mojo::Transaction::WebSocket> object. Note
that this reference is usually weakened, so the object needs to be referenced
elsewhere as well when you're performing non-blocking operations and the
underlying connection might get closed early.
# Check peer information
my $address = $c->tx->remote_address;
Expand Down

0 comments on commit 3890c11

Please sign in to comment.