[Jifty-commit] r1338 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Jun 21 17:25:48 EDT 2006


Author: alexmv
Date: Wed Jun 21 17:25:47 2006
New Revision: 1338

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Web.pm

Log:
 r14173 at zoq-fot-pik:  chmrr | 2006-06-21 17:25:38 -0400
  * Filehandles don't love continuations


Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm	(original)
+++ jifty/trunk/lib/Jifty/Web.pm	Wed Jun 21 17:25:47 2006
@@ -563,7 +563,7 @@
         $request->add_state_variable( key => $_, value => $self->{'state_variables'}->{$_} )
           for keys %{ $self->{'state_variables'} };
         for (@actions) {
-            $request->add_action(
+            my $new_action = $request->add_action(
                 moniker   => $_->moniker,
                 class     => $_->class,
                 order     => $_->order,
@@ -571,6 +571,10 @@
                 has_run   => $_->has_run,
                 arguments => $_->arguments,
             );
+            # Clear out filehandles, which don't go thorugh continuations well
+            $new_action->arguments->{$_} = ''
+              for grep {ref $new_action->arguments->{$_} eq "Fh"}
+                keys %{$new_action->arguments};
         }
         $request->continuation($self->request->continuation);
         my $cont = Jifty::Continuation->new(


More information about the Jifty-commit mailing list