Closed meme-lord closed 3 months ago
The apiServer
in runner.httpApiEndpoint
also needs to be shutdown if options.HttpApiEndpoint
but runner/apiendpoint.go
has no Close or Stop function right now
This is now fixed in latest release - https://github.com/projectdiscovery/httpx/releases/tag/v1.6.8
httpx version: v1.6.7
Current Behavior:
I'm trying to use httpx as a library with stats enabled. I want to close one runner and open another but I get this error:
Expected Behavior:
No crash. The clistats server should be shutdown when .Close() is called on the runner. In runner.go the Close() function looks like:
It should include
Steps To Reproduce:
Running this will crash with this output: