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

no need for browser.close() #972

Merged
merged 1 commit into from
Jul 30, 2024
Merged

no need for browser.close() #972

merged 1 commit into from
Jul 30, 2024

Conversation

zrquan
Copy link
Contributor

@zrquan zrquan commented Jul 27, 2024

When the katana process exits, rod will automatically kill the browser process. (go-rod/rod#550 (comment))

Moreover, when using non-headless mode (-sb), even if Ctrl-c is pressed, the katana will hang on browser.close() until the scraping is complete, preventing the process from terminating.

Close #978

@ehsandeep ehsandeep changed the base branch from main to dev July 27, 2024 10:57
@dwisiswant0
Copy link
Member

using non-headless mode [...]

Are you saying that even without the headless mode, the browser still spawns?

@zrquan
Copy link
Contributor Author

zrquan commented Jul 29, 2024

using non-headless mode [...]

Are you saying that even without the headless mode, the browser still spawns?↳

Actually, I mean using katana's headless mode with -show-browser option.

like katana -hl -sb -u http://localhost

@dwisiswant0
Copy link
Member

I mean using katana's headless mode […]

Lemme check.

When the katana process exits, rod will automatically kill the browser process.
@dwisiswant0
Copy link
Member

Hey @zrquan, could you create an issue first before we merge this?

@zrquan
Copy link
Contributor Author

zrquan commented Jul 30, 2024

Hey @zrquan, could you create an issue first before we merge this?

Done.

@dwisiswant0 dwisiswant0 linked an issue Jul 30, 2024 that may be closed by this pull request
@dwisiswant0 dwisiswant0 merged commit dd2e183 into projectdiscovery:dev Jul 30, 2024
13 checks passed
@zrquan zrquan deleted the zrquan-patch-1 branch July 30, 2024 11:28
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.

Ctrl-c cannot terminate katana when using -sb, -show-browser
2 participants