• Jérome Perrin's avatar
    testing: fix resource warning with ManagedHTTPServer · e6deadac
    Jérome Perrin authored
    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.
    e6deadac
utils.py 7.82 KB