Hi All,

I have linux/apache/mapscript/perl/cgi working ok, but wanted to try fastcgi to 
speed it up.

This is a wms server, and under fastcgi it seems to work, but all the output is 
sent to stderr, not stdout.

I dont need to do any buffering or anything after the request, so I am not 
using msIO_installStdoutToBuffer.

OWSDispatch returns a zero (MS_SUCCESS), but there is no output.  If I look in 
/var/log/httpd/error_log however, there is lots and lots of binary'ish crap.

The script:

#!/usr/bin/perl
use strict;
use mapscript;
use FCGI;
my $request = FCGI::Request();

my $map = new mapscript::mapObj( "/var/www/maps/hamilton.map" )
       or die 'cant load hamilton.map';


while($request->Accept() >= 0)
{
       my $req = new mapscript::OWSRequest();
       my $x = $req->loadParams();
       print STDERR "loadParams: $x\n";

       $x = $map->OWSDispatch( $req );
       print STDERR "OWSDispatch: $x\n";

       my $errObj = new mapscript::errorObj();
       while ($errObj) {
               print STDERR "ERROR: 
$errObj->{code}:$errObj->{message}:$errObj->{routine} \n";
               $errObj = $errObj->next();
       }
}


Any help would be appreciated.

Thanks,

-Andy
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to