Skip to content

Commit

Permalink
Debug mode should provide better defaults for keepAlive and connectTi…
Browse files Browse the repository at this point in the history
…meout (fixes #1209)
  • Loading branch information
gnodet committed Nov 25, 2024
1 parent 8adabb1 commit 0951c2f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,12 @@ private Process startDaemonProcess(String daemonId, ClientOutput output) {
address = host + ":" + iPort;
output.accept(Message.buildStatus("Daemon listening for debugger on address: " + address));
args.add("-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=" + address);
if (Environment.MVND_KEEP_ALIVE.getCommandLineOption(args) == null) {
System.setProperty(Environment.MVND_KEEP_ALIVE.getProperty(), "1h");
}
if (Environment.MVND_CONNECT_TIMEOUT.getCommandLineOption(args) == null) {
System.setProperty(Environment.MVND_CONNECT_TIMEOUT.getProperty(), "1h");
}
}
// jvm args
String jvmArgs = parameters.jvmArgs();
Expand Down

0 comments on commit 0951c2f

Please sign in to comment.