Ticket #1938 (closed defect: fixed)

Opened 7 years ago

Last modified 6 years ago

Error when producing large xml

Reported by: assefa Owned by: 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

Changed 7 years ago by assefa

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

Changed 7 years ago by assefa

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

Changed 6 years ago 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

Note: See TracTickets for help on using tickets.