chrome-devtools-java-client
chrome-devtools-java-client copied to clipboard
When Remote Chrome crashes
Sometimes Chrome crashes, devtools client just hangs waiting forever for a response that will never come , CDT will use CountdownLaunch to wait for a response as soon as the Chrome command is sent, which is indefinitely by default.
I tried to look at the code and found that there are two ways to solve this problem:
- Modify the timeout period for waiting parameters.
private static final String READ_TIMEOUT_PROPERTY = "com.github.kklisura.cdt.services.config.readTimeout";
- I recommend clearing all socket connections waiting for a response in the hook method of onClose
I would like to propose a PR to accomplish this function
The same issue here, i do not know yet if chrome crashes but i do have certain scenarios where waitunitlclose hangs forever.