After the pipeline server responds to a request, there's no call to close() on req.resource, which is a File from blizzardry/src/lib/mpq/file.js.
I believe close() is necessary to get StormLib to free up its handle on the file loaded out of the MPQ.
Adding close() appears to keep the pipeline server from bloating into the multi-GB range for memory usage after extended sessions in Wowser. With the fix, I've been able to observe memory usage going down after a period of time--which never seemed to happen before.
After the pipeline server responds to a request, there's no call to
close()
onreq.resource
, which is aFile
fromblizzardry/src/lib/mpq/file.js
.I believe
close()
is necessary to get StormLib to free up its handle on the file loaded out of the MPQ.Adding
close()
appears to keep the pipeline server from bloating into the multi-GB range for memory usage after extended sessions in Wowser. With the fix, I've been able to observe memory usage going down after a period of time--which never seemed to happen before.