Skip to content

Commit

Permalink
be a little more specific in FAQ answer
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 22, 2016
1 parent c7cea5f commit d14532f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.59 2016-04-21
6.59 2016-04-22
- Removed deprecated xss_escape function from Mojo::Util.
- Improved HTML Living Standard compliance of Mojo::DOM::HTML.
- Improved Mojo::Server::Daemon to log when a connection has been closed
Expand Down
24 changes: 12 additions & 12 deletions lib/Mojolicious/Guides/FAQ.pod
Expand Up @@ -248,18 +248,18 @@ request.

=head2 What does "Premature connection close" mean?

On the I<client-side> this message is often related to the one above, and means
that the web server closed the connection before the user agent could receive
the whole response, or that the user agent got destroyed, which forces all
connections to be closed immediately.

On the I<server-side> this message means that the user agent closed the
connection before the web server could send the whole response. While this is
generally harmless in itself, special care must be taken for non-blocking
operations that might still be active, because once the connection has been
closed L<Mojolicious::Controller/"tx"> will no longer be available. In such
cases you can use events like L<Mojo::Transaction/"finish"> for cleaning up, or
keep an extra reference to the transaction object.
When reported by L<Mojo::UserAgent>, this message is often related to the one
above, and means that the web server closed the connection before the user agent
could receive the whole response, or that the user agent got destroyed, which
forces all connections to be closed immediately.

And when reported by one of the built-in web servers, this message means that
the user agent closed the connection before the web server could send the whole
response. While this is generally harmless in itself, special care must be taken
for non-blocking operations that might still be active, because once the
connection has been closed L<Mojolicious::Controller/"tx"> will no longer be
available. In such cases you can use events like L<Mojo::Transaction/"finish">
for cleaning up, or keep an extra reference to the transaction object.

=head2 What does "Worker 31842 has no heartbeat, restarting" mean?

Expand Down

0 comments on commit d14532f

Please sign in to comment.