Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#1938 closed defect (fixed)

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 (3)

comment:1 by assefa, 18 years ago

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

comment:2 by assefa, 18 years ago

Resolution: fixed
Status: newclosed
fixed in cvs head (4.99)

comment:3 by assefa, 17 years ago

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.