fix: leak flag in client and server package
closes: https://github.com/projectdiscovery/interactsh/issues/1245 in nuclei tests during parallel execution we had observed server and client package getting flagged as goroutine leaks. it was reproducible from the issue https://github.com/projectdiscovery/interactsh/issues/1245 added cleanup and avoid starting goroutine when client is created(it starts now when needed) and in server added cleanup state.
[!IMPORTANT]
Review skipped
Draft detected.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
✨ Finishing touches
🧪 Generate unit tests
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
- [ ] Commit unit tests in branch
fix/goleak-client-server
Comment @coderabbitai help to get the list of available commands and usage tips.
relates: https://github.com/projectdiscovery/nuclei/pull/6490