snoyberg/http-conduit — comment on commit 8e4a036593c36ecf5cb97f49c98c9a268a45af94
File: Network/HTTP/Conduit/Manager.hs line 163
By meteficha:

Actually you can't kill the reaper thread here, otherwise you won't be able to reuse the `Manager` =).

It seems we actually need two functions here: `closeManager` which kills the reaper and renders the `Manager` unusable (possibly by puting `error` on the `Mvar`), and `clearManager` which closes all open connections but keeps the everything else unharmed.