Ticket #1938 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

Error when producing large xml

Reported by: assefa Assigned to: assefa
Priority: high Milestone:
Component: SOS Server Version: 4.10
Severity: normal Keywords:
Cc:

Description

There was a problem when producing large xml (GetObservation and
GetCapabilities) due to the fact that  msIO_printf is using a static buffer of
8k and teh SOS module only calls this function once after all the xml is
generated in memeory.

Change History

10/16/06 10:54:58 changed by assefa

The fix is to split the ouptu into 5k buffers and do several ms_ioprintf calls.

10/16/06 12:06:17 changed by assefa

  • status changed from new to closed.
  • resolution set to fixed.
fixed in cvs head (4.99)

07/10/07 16:41:14 changed by assefa

Just as an update : the output mechanisime has been change in mapserver 5.0 and 4.10.3 to use following code when doing outputs:

context = msIO_getHandler(stdout);

xmlDocDumpFormatMemoryEnc(psDoc, &buffer, &size, "ISO-8859-1", 1); msIO_contextWrite(context, buffer, size); xmlFree(buffer);

see bug http://trac.osgeo.org/mapserver/ticket/2146