Don Penney 0ea37b36a1 Trigger garbage collection to free WSGI resources
The wsgiref.simple_server is used by patching for handling
API requests. When uploading files, the server opens a file
handle for the temporary resource, but does not close it.
Instead, it's left to periodic garbage collection to free the
resources. Until garbage collection, however, this means
disk space is still in use for the deleted temporary file,
as the handle is left open.

This update adds a call to gc.collect() after the call
to simple_server.handle_request() to immediately free all
unused resources.

Change-Id: Ie39213dad540448cede46cc8e580d31582419dcc
Closes-Bug: 1797977
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-03-11 11:05:33 -04:00
2018-05-31 07:37:12 -07:00
2018-05-31 07:37:12 -07:00
2018-08-24 09:19:44 -05:00
2018-07-25 08:48:07 -05:00

stx-update

StarlingX Software Management

Description
StarlingX Installation/Update/Patching/Backup/Restore
Readme 16 MiB
Languages
Python 93.2%
Shell 5.3%
HTML 1.1%
Makefile 0.4%