[mogilefs] bradfitz, r917: lighttpd support. passes all tests now. (fwd)

Brad Fitzpatrick brad at danga.com
Thu Apr 26 00:20:25 UTC 2007


Good question.  I have no clue.

Let's see...

$ /usr/local/sbin/lighttpd -v
lighttpd-1.4.11 - a light and fast webserver
Build-Date: Jun 12 2006 17:08:25

So 1.4.11 is supported.  I can't vouch for higher or lower versions.

Try it and let me know?  :-)


On Wed, 25 Apr 2007, Adam Rosien wrote:

> What version of lighty is supported, i.e., >1.3?
>
> .. Adam
>
> On 4/25/07, Brad Fitzpatrick <brad at danga.com> wrote:
> > Btw,
> >
> > Lighttpd support passes all tests now...
> >
> >
> >
> > ---------- Forwarded message ----------
> > Date: Wed, 25 Apr 2007 23:41:18 +0000 (UTC)
> > From: commits at code.sixapart.com
> > Subject: [mogilefs] bradfitz, r917: lighttpd support. passes all tests now.
> >
> > lighttpd support.  passes all tests now.
> >
> >
> >
> > U   trunk/server/CHANGES
> > U   trunk/server/MANIFEST
> > U   trunk/server/lib/MogileFS/Worker/Monitor.pm
> > U   trunk/server/lib/MogileFS/Worker/Replicate.pm
> >
> >
> > Modified: trunk/server/CHANGES
> > ===================================================================
> > --- trunk/server/CHANGES        2007-04-25 22:56:56 UTC (rev 916)
> > +++ trunk/server/CHANGES        2007-04-25 23:41:18 UTC (rev 917)
> > @@ -3,7 +3,8 @@
> >            activity on storage nodes... policy isn't hard-coded, and is
> >            in fact currently random)
> >
> > -        * lighttpd support
> > +        * lighttpd support in both mogilefsd and mogstored.  passes test
> > +          suite with environment MOGSTORED_SERVER_TYPE=lighttpd set now.
> >
> >          * abstract out the HTTP server support in mogstored, so
> >            mogstored isn't just a perlbal wrapper, but an anything
> >
> > Modified: trunk/server/lib/MogileFS/Worker/Monitor.pm
> > ===================================================================
> > --- trunk/server/lib/MogileFS/Worker/Monitor.pm 2007-04-25 22:56:56 UTC (rev 916)
> > +++ trunk/server/lib/MogileFS/Worker/Monitor.pm 2007-04-25 23:41:18 UTC (rev 917)
> > @@ -161,6 +161,12 @@
> >      $self->{last_test_write}{$devid} = $now;
> >
> >      # now we want to check if this device is writeable
> > +
> > +    # first, create the test-write directory.  this will return
> > +    # immediately after the first time, as the 'create_directory'
> > +    # function caches what it's already created.
> > +    $dev->create_directory("/dev$devid/test-write");
> > +
> >      my $num = int(rand 10000);  # this was "$$-$now" before, but we don't yet have a cleaner in mogstored for these files
> >      my $puturl = "http://$hostip:$port/dev$devid/test-write/test-write-$num";
> >      my $content = "time=$now rand=$num";
> >
> > Modified: trunk/server/lib/MogileFS/Worker/Replicate.pm
> > ===================================================================
> > --- trunk/server/lib/MogileFS/Worker/Replicate.pm       2007-04-25 22:56:56 UTC (rev 916)
> > +++ trunk/server/lib/MogileFS/Worker/Replicate.pm       2007-04-25 23:41:18 UTC (rev 917)
> > @@ -655,6 +655,9 @@
> >          return 0;
> >      }
> >
> > +    # need by webdav servers, like lighttpd...
> > +    $ddev->vivify_directories($d_dfid->url);
> > +
> >      # setup our pipe error handler, in case we get closed on
> >      my $pipe_closed = 0;
> >      local $SIG{PIPE} = sub { $pipe_closed = 1; };
> >
> >
> >
>


More information about the mogilefs mailing list