Hi Devs,<div><br></div><div>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.</div>
<div><br></div><div>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?</div>
<div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div>