# This file documents the revision history for Perl extension Catalyst.
+5.90077 - 2014-11-18
+ - We store the PSGI $env in Catalyst::Engine for backcompat reasons. Changed
+ this so that the storage is a weak reference, so that it goes out of scope
+ with the request. This solves an issue where items in the stash (now in the
+ PSGI env) would not get closed at the end of the request. This caused some
+ regression, primarily in custom testing classes.
+
5.90076 - 2014-11-13
- If throwing an exception object that does the code method, make sure that
method returns an expected HTTP status code before passing it on to the
__PACKAGE__->_encode_check(Encode::FB_CROAK | Encode::LEAVE_SRC);
# Remember to update this in Catalyst::Runtime as well!
-our $VERSION = '5.90076';
+our $VERSION = '5.90077';
sub import {
my ( $class, @arguments ) = @_;
our $CHUNKSIZE = 64 * 1024;
# XXX - this is only here for compat, do not use!
-has env => ( is => 'rw', writer => '_set_env' );
+has env => ( is => 'rw', writer => '_set_env' , weak_ref=>1);
my $WARN_ABOUT_ENV = 0;
around env => sub {
my ($orig, $self, @args) = @_;
# Remember to update this in Catalyst as well!
-our $VERSION = '5.90076';
+our $VERSION = '5.90077';
=head1 NAME
ok($resp->is_success);
#is($ctx->count_leaks, 1);
# FIXME: find out why this changed from 1 to 2 after 52af51596d
- is($ctx->count_leaks, 2);
+ # ^^ probably has something to do with env being in Engine and Request - JNAP
+ # ^^ I made the env in Engine a weak ref, should help until we can remove it
+ is($ctx->count_leaks, 1);
}
{