[cgiapp] Re: Possible patches for ::Server (calling George)

George Hartzell hartzell at alerce.com
Thu Sep 18 16:36:26 EDT 2008


Mark Stosberg writes:
 > On Wed, 17 Sep 2008 22:24:05 -0400
 > Ricardo SIGNES <perl.cgiapp at rjbs.manxome.org> wrote:
 > 
 > > * Mark Stosberg <mark at summersault.com> [2008-09-17T20:57:37]
 > > > > ::Dispatch::Server prefers static files first, ::Server prefers dispatching first
 > > > 
 > > > I think it is a bug in ::Server that it prefers dispatching server. The
 > > > recommended use of ::Dispatch, and also for Drupal, is to use a rewrite
 > > > rule that will serve static files directly if they match, otherwise the
 > > > request is passed on for possible dispatching. As Michael Peters pointed
 > > > out, this design should have better performance as well. 
 > > > 
 > > > So Ricardo, would you accept a patch to change this ordering?
 > > 
 > > Almost certainly.  I'll have to check with the other big user/maintainer.
 > > 
 > > > That will print out "/first/second" and then "/first", but never "/".  I
 > > > think this is a bug in ::Server. Richardo, would you accept a patch to
 > > > make "/" dispatchable? ( "" Would be treated the same ). 
 > > 
 > > Only if you agree to never put an 'h' in my name again.
 > 
 > I sincerely apologize, Ricardo. I make a lot of typos, but this one was
 > one of the most unfortunate.
 > 
 > George, would you willing to work on patches for these items? I'm happy
 > to peer review or help myself.

Yep, I'd love to (although not until the weekend).

g.


More information about the cgiapp mailing list