Mapserver for Windows 2003 + FCGI + SDE

Frank Warmerdam fwarmerdam at GMAIL.COM
Thu Apr 21 15:09:54 EDT 2005


On 4/21/05, Mark Leslie <mark at refractions.net> wrote:
> I'm making WMS requests.  In order to speed the failure, I'm currently
> requesting an SDE layer that mapserver can't connect to (required VPN
> connection isn't established) but the fault happens eventually if it can
> connect. I'm using jmeter to make the requests and save out the
> responses.  Each error response contains two new  messages, one from
> msSDELayerOpen, and one from msDrawMap.  I'll have to take a closer look
> to make sure my contrived testing isn't the cause, but I recall having
> this problem under normal use as well.

Mark,

I'm sorry, I can't see why the error messages would still
pile up in this situations.  You might want to add some printfs()
to verify things are happening as expected.  The key in mapserv.c
is this bit:

#if defined(USE_WMS_SVR) || defined(USE_WFS_SVR) || defined(USE_WCS_SVR)
    if ((status = msOWSDispatch(msObj->Map, msObj->request)) != MS_DONE  ) 
    {
      /* This was a WMS/WFS request... cleanup and exit 
       * At this point any error has already been handled
       * as an XML exception by the OGC service.
       */
      msFreeMapServObj(msObj);

#ifdef USE_FASTCGI
      /* FCGI_ --- return to top of loop */
      msResetErrorList();
      continue;
#else
      /* normal case, processing is complete */
      msCleanup();
      exit( 0 );
#endif

    }
#endif /* have an OWS service request */

Basically, msOWSDispatch() will return something other
than MS_DONE if it finds it has received a WMS, WFS or
WCS request.  Then the code should call msFreeMapServObj(), 
msResetErrorList() and then continue back to the main dispatch
loop. 

msResetErrorList() should wipe the current error stack. 

Either in a debugger, or with lots of printfs(), verify that all
these stages are working as expected.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list