Index: [Article Count Order] [Thread]

Date: Wed, 18 Jun 2003 21:09:26 +0000 (GMT)
From: ahoward <ahoward@fsl.noaa.gov>
Subject: [webricken:117] Re: can't run cgis under httpd.rb
To: Rasputin <rasputin@idoru.mine.nu>
Cc: webricken@notwork.org
Message-Id: <Pine.LNX.4.53.0306182108350.10100@eli.fsl.noaa.gov>
In-Reply-To: <20030618210621.GA18717@littlebird.tenfour>
References: <20030616160151.GA6808@littlebird.tenfour> <20030617.142807.766299896.gotoyuzo@kotetsu.does.notwork.org> <20030618210621.GA18717@littlebird.tenfour>
X-Mail-Count: 00117

On Wed, 18 Jun 2003, Rasputin wrote:

> * GOTOU Yuuzou <gotoyuzo@notwork.org> [0629 06:29]:
> > Hi,
> >
> > In message <20030616160151.GA6808@littlebird.tenfour>,
> >  `Rasputin <rasputin@idoru.mine.nu>' wrote:
> > > httpd.rb runs fine when runnig rhtml, but the cgi example
> > > seems to fail.
> >
> > > /usr/pkg/lib/ruby/site_ruby/1.6/webrick/httpservlet/cgi_runner.rb:23:in `restore': marshal data too short (ArgumentError)
> >
> > It's a bug of WEBrick. Partial-read occurs in data passing
> > from server to CGI, but cgi_runner.rb doesn' t care it.
> > This bug is fixed in CVS version.
>
> Thanks, that seems to work - but the CVS version needs 1.8
> (for stringio). I only have 1.6 ...
>
> Is there a workaround for 1.6 , or is it not worth it now 1.8 is
> almost released?

download the 'shim' from the RAA.  it gives most (all?) functionality expected
in 1.8 for 1.6.  stringio is definitely in there.

-a
--
  ====================================
  | Ara Howard
  | NOAA Forecast Systems Laboratory
  | Information and Technology Services
  | Data Systems Group
  | R/FST 325 Broadway
  | Boulder, CO 80305-3328
  | Email: ara.t.howard@noaa.gov
  | Phone:  303-497-7238
  | Fax:    303-497-7259
  | ~ > ruby -e 'p(%.\x2d\x29..intern)'
  ====================================