You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everytime ExecuteNucleiWithOpts called, in createEphemeralObjects function, it New a ratelimit object and start go routine at github.com/projectdiscovery/ratelimit(ratelimit.go:93).
This go routine only return when context done, but it never called.
There is no Close() function I can use, since the object is only inside that function. (I can't use ThreadSafeNucleiEngine.Close(), it's different ratelimiter.)
Expected Behavior:
Steps To Reproduce:
Anything else:
The text was updated successfully, but these errors were encountered:
iuliu8899
added
the
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
label
May 16, 2024
I'm unable to reproduce in the dev branch .If you check the block code invoking createEphemeralObjects, contextually to the creation and upon nuclei sdk complete execution also closeEphemeralObjects(..) is invoked, which in turn call the stop method of the rate limiter, that cancel the internal context. Would it be possible to provide a PoC to reproduce the behavior you are describing?
Nuclei version: v3.2.7
Current Behavior:
I use the threadsafe engine in sdk, and called ExecuteNucleiWithOpts func when scan start. Then...
Stack:
Everytime ExecuteNucleiWithOpts called, in createEphemeralObjects function, it New a ratelimit object and start go routine at github.com/projectdiscovery/ratelimit(ratelimit.go:93).
This go routine only return when context done, but it never called.
There is no Close() function I can use, since the object is only inside that function. (I can't use ThreadSafeNucleiEngine.Close(), it's different ratelimiter.)
Expected Behavior:
Steps To Reproduce:
Anything else:
The text was updated successfully, but these errors were encountered: