[mapserver-dev] WMS GetCapabilities response truncated to 4096
bytes on windows 2008 Server
Frank Warmerdam
warmerdam at pobox.com
Thu Jan 19 17:02:23 EST 2012
Tamas,
I'm surprised this hasn't come up before. I think doing it in
msCleanup() would be fine. In theory it would be nice for the
mapio.h concept to be extended with something for flushing
and we could do it strategically at the end of operations but
I can't (off hand) think of situations where that is likely to be
better than just flushing in msCleanup().
Best regards,
Frank
On Thu, Jan 19, 2012 at 1:51 PM, Tamas Szekeres <szekerest at gmail.com> wrote:
> Hi Devs,
>
> We have experienced strange behaviour of the WMS GetCapabilities response of
> MapServer CGI on Windows 2008 and Windows 7 which is truncated to 4k in
> size. The same thing happens when invoking mapserv from the command line and
> the output is redirected to a file.
>
> After a bit of investigation, I came to the conclusion that the process
> termination doesn't necessarily flush the file buffers (incl. stdout and
> stderr) on Win 2008 and Win 7. This is primarily an OS behaviour which works
> correctly on Win2003/XP, but it should probably be fixed in MapServer by
> calling fflush(NULL) at the right place. It could probably be done in the
> mapserv application or we could also do such things in msCleanup as well.
> What would be the most reasonable place to invoke fflush or do you have a
> more reasonable approach?
>
>
> Best regards,
>
> Tamas
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
--
---------------------------------------+--------------------------------------
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 Software Developer
More information about the mapserver-dev
mailing list