Closed yurenchen000 closed 1 week ago
when load from history.json to uploadFileMap at server start it ignore expired files. https://github.com/TransparentLC/cloud-clipboard/blob/70c90c2/server-node/app/http-router.js#L267
history.json
uploadFileMap
clean expired files only from uploadFileMap https://github.com/TransparentLC/cloud-clipboard/blob/70c90c2/server-node/app/uploaded-file.js#L63
if server Stopped for a while, files that expire during this period will not be cleaned up. then these files will be leaked.
when load from
history.json
touploadFileMap
at server start it ignore expired files. https://github.com/TransparentLC/cloud-clipboard/blob/70c90c2/server-node/app/http-router.js#L267clean expired files only from
uploadFileMap
https://github.com/TransparentLC/cloud-clipboard/blob/70c90c2/server-node/app/uploaded-file.js#L63if server Stopped for a while, files that expire during this period will not be cleaned up. then these files will be leaked.