Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods
In directory vz-cvs-3.sog:/tmp/cvs-serv18226

Modified Files:
        mojolicious-pm.info 
Added Files:
        mojolicious-pm.patch 
Log Message:
Add simple patch from upstream to fix chunking problem. Once the patch is in a 
normal Mojo release, I'll remove it from this package again.


--- NEW FILE: mojolicious-pm.patch ---
diff -Nurd clean/lib/Mojo/Server/Daemon.pm patched/lib/Mojo/Server/Daemon.pm
--- clean/lib/Mojo/Server/Daemon.pm     2011-11-16 11:12:03.000000000 +0100
+++ patched/lib/Mojo/Server/Daemon.pm   2011-11-16 11:11:04.000000000 +0100
@@ -307,7 +307,9 @@
   return unless $tx->is_writing;
 
   # Get chunk
+  return if $c->{writing}++;
   my $chunk = $tx->server_write;
+  delete $c->{writing};
   warn "> $chunk\n" if DEBUG;
 
   # Write

Index: mojolicious-pm.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods/mojolicious-pm.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- mojolicious-pm.info 24 Oct 2011 21:17:24 -0000      1.2
+++ mojolicious-pm.info 16 Nov 2011 10:18:20 -0000      1.3
@@ -1,13 +1,15 @@
 Package: mojolicious-pm
-Version: 1.99
-Revision: 1
+Version: 2.26
+Revision: 2
 Type: perl
 Description: The Mojolicious MVC Perl web framework
 License: Artistic
 Maintainer: Sjors Gielen <f...@sjorsgielen.nl>
 Source: mirror:cpan:authors/id/S/SR/SRI/Mojolicious-%v.tar.gz
-Source-MD5: 70365be4a9b0d6bf04d71fd6bdf088bf
+Source-MD5: 88568ba2e12b2c15e14f05ffc87065b3
 Homepage: http://mojolicio.us/
+PatchFile: %n.patch
+PatchFile-MD5: 28492f8ae62ae1262e45af0d3948e536
 
 BuildDepends: perl5123-core | perl5100-core | perl588-core | system-perl
 
@@ -18,6 +20,11 @@
   TestScript: make test || exit 2
 <<
 
+DescPort: <<
+  The patch supplied was given to me by upstream, and is a workaround for a
+  chunked write bug in Mojolicious. At some point a real fix will be released.
+<<
+
 DescDetail: <<
 Back in the early days of the web, many people learned Perl because of a
 wonderful Perl library called CGI. It was simple enough to get started


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to