Perlbal - Re: Perlbal bug: Race condition with web_server role

This is Interesting: Free IT Magazines  
Home > Archive > Perlbal > September 2007 > Re: Perlbal bug: Race condition with web_server role





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Perlbal bug: Race condition with web_server role
Jeremy James

2007-09-12, 7:11 am

Ugh. Brain no worky. Attachment actually included this time.

-------- Original Message --------
Subject: Re: Perlbal bug: Race condition with web_server role in
_serve_request
Date: Wed, 12 Sep 2007 12:48:12 +0100
From: Jeremy James <jbj@forbidden.co.uk>
To: perlbal@lists.danga.com
References: <46D6CF9E.2070906@forbidden.co.uk>

Jeremy James wrote:
> We've bypassed the problem for now (reproxying affected files from
> apache), but will work on a patch soon - opening the file first, then
> call stat on the filehandle, obviously taking care to handle notfound
> and directory cases.


On Dormando's prodding, here's a patch that we've been using in
production for the last week with no obvious issues. It also fixes a
minor bug that a request for a non-file or directory (eg. a fifo or a
device node) would cause the server to hang until timeout with a 500
Internal Server Error. These now return 403 Forbidden errors directly.

We're running a slightly older version of perlbal, 1.57, but this patch
should be fine against a current version of ClientHTTPBase.pm (svn 697),
albeit with -2 line offsets.

-jeremy

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com