
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>
stx-update
StarlingX Software Management
Description
Languages
Python
93.2%
Shell
5.3%
HTML
1.1%
Makefile
0.4%