Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for sdk asynchronous issue #717

Closed
wants to merge 1 commit into from

Conversation

Serhatcck
Copy link

When I ran Katana as an SDK, it was only crawling a single URL. Upon investigating, I found that it was due to the 'Do' function in 'pkg/engine/common/base.go.' The structure for asynchronously adding data to the queue wasn't working in conjunction with the for loop. The for loop wasn't waiting for the result of the asynchronous function, so when a new value arrived in the queue, the for loop had already completed. To resolve this, I submitted this pull request.

Issue link: #714
I've provided necessary explanations at the location where the issue is located.

@Mzack9999
Copy link
Member

@Serhatcck I think the issue could have been a too short timeout for the specific target, since go routine is anyway awaited via the wg.Wait() at the end. Have you tried with a larger -timeout (default is 10s)

@Mzack9999 Mzack9999 linked an issue Mar 19, 2024 that may be closed by this pull request
@ehsandeep ehsandeep deleted the branch projectdiscovery:dev March 26, 2024 08:48
@ehsandeep ehsandeep closed this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

From Discord: Katana as an SDK issue
3 participants