CGI response is being truncated in IIS
When configuring mapcache CGI in IIS I'm getting truncated results for the demo requests. Actually the in the CGI response output stream (stdout) every \n is replaced with \r\n so the content-length specified by mapcache is not sufficient.
This issue can be fixed this way: _setmode( _fileno( stdout ), _O_BINARY );
Probably that should be set for the MSVC builds only.
+1 for a MSVC-only workaround
Perhaps have a look at or reuse int msIO_needBinaryStdout() in MapServer's mapio.c
Thanks for the hint, it looks like we use this condition in mapserver
#if defined(_WIN32) && !defined(USE_FASTCGI) ..