chrome-devtools-java-client icon indicating copy to clipboard operation
chrome-devtools-java-client copied to clipboard

When Remote Chrome crashes

Open izachwei opened this issue 2 years ago • 1 comments

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

izachwei avatar Sep 26 '22 08:09 izachwei

The same issue here, i do not know yet if chrome crashes but i do have certain scenarios where waitunitlclose hangs forever.

contenidodigital avatar Jun 24 '24 14:06 contenidodigital