software/caddy-frontend/test: fix ResourceWarning with unclosed server socket
see commit e6deadaca7f4469ab32e028cdbb029acc9c7d3c3 from slapos.core: We fork a subprocess to serve requests, but the listening socket is bound in server constructor and inherited by subprocess. With this pattern, we have to explicitly close the socket from parent process to prevent the leak.
Showing
Please register or sign in to comment