mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-09 01:30:57 +00:00
Debug mode should provide better defaults for keepAlive and connectTimeout (fixes #1209)
This commit is contained in:
@@ -405,6 +405,12 @@ public class DaemonConnector {
|
|||||||
address = host + ":" + iPort;
|
address = host + ":" + iPort;
|
||||||
output.accept(Message.buildStatus("Daemon listening for debugger on address: " + address));
|
output.accept(Message.buildStatus("Daemon listening for debugger on address: " + address));
|
||||||
args.add("-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,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
|
// jvm args
|
||||||
String jvmArgs = parameters.jvmArgs();
|
String jvmArgs = parameters.jvmArgs();
|
||||||
|
Reference in New Issue
Block a user