Skip to content

Commit

Permalink
show accepted connections
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 11, 2012
1 parent f0ffd04 commit da96e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -80,6 +80,7 @@ sub _build_tx {
my $handle = $self->ioloop->stream($id)->handle;
$tx->local_address($handle->sockhost)->local_port($handle->sockport);
$tx->remote_address($handle->peerhost)->remote_port($handle->peerport);
warn "-- Accept connection (@{[$tx->remote_address]})\n" if DEBUG;

# TLS
$tx->req->url->base->scheme('https') if $c->{tls};
Expand All @@ -102,7 +103,6 @@ sub _build_tx {
);

# Kept alive if we have more than one request on the connection
$c->{requests} ||= 0;
$tx->kept_alive(1) if ++$c->{requests} > 1;

return $tx;
Expand Down

0 comments on commit da96e39

Please sign in to comment.