subfinder icon indicating copy to clipboard operation
subfinder copied to clipboard

[Issue] Timeout flag does not work consistently

Open shawnjoseph opened this issue 10 months ago • 6 comments

Describe the bug When running Subfinder the -timeout option does not work for every run.

Subfinder version latest: v2.7.0

Complete command you used to reproduce this subfinder -d erlang.org -timeout 5

Screenshots Image

shawnjoseph avatar Mar 14 '25 21:03 shawnjoseph

Seems related https://github.com/projectdiscovery/subfinder/issues/872

shawnjoseph avatar Mar 14 '25 21:03 shawnjoseph

Any update here?

shawnjoseph avatar Apr 10 '25 19:04 shawnjoseph

We'll look into this

dogancanbakir avatar Apr 11 '25 09:04 dogancanbakir

Hi, is anyone currently working on this? If not, I’d like to take a shot at fixing it.

oxqnd avatar Jul 20 '25 22:07 oxqnd

@oxqnd That would be great! Please let me know if you need any assistance.

dogancanbakir avatar Jul 21 '25 08:07 dogancanbakir

Hi @dogancanbakir , I’ve submitted PR #1629 to address this. The -timeout flag now applies a global context timeout using context.WithTimeout, which ensures the entire enumeration respects the configured limit. Let me know if any changes are needed. Thanks!

oxqnd avatar Jul 30 '25 09:07 oxqnd