[mapserver-users] Java MapScript on Tomcat servlet does not free GeoTIFF file handles

beu beu at live.jp
Fri May 22 05:01:53 PDT 2020


Dear,

That "rough flow" is running, but that is dirty and illegal.
I modified that:

    get HTTP request body
    create OWSRequest instance
    create mapObj instance with some MapFile
    call msIO_installStdoutToBuffer()
    call mapObj#OWSDispatch()
    call msIO_stripStdoutBufferContentType()
    call msIO_getStdoutBufferBytes() and get binary data
    call msIO_resetHandlers()
    call HttpServletResponse#getOutputStream()
    call ServletOutputStream#write() and write binary data
    call ServletoutputStream#close()
    call mapObj#delete()
    call OWSRequest#delete()

But, the problems are intact.
I think that mapObj#OWSDispatch() does not free file handles ... what do you
think?
Could someone please tell me how to fix them?


Regards,

Beu



--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html



More information about the MapServer-users mailing list