bump reconnect params for debugger; PY-76400

(cherry picked from commit 9e4ea9e5832773fc78132d0ab40c9a9b879e84d0)

IJ-MR-149055

GitOrigin-RevId: 9ab5e2dc15c3168548a4fc1c8ac7a651668255c4
This commit is contained in:
Aleksandr Sorotskii
2024-11-11 13:12:58 +01:00
committed by intellij-monorepo-bot
parent 836e5e4435
commit 5f4980f553
2 changed files with 4 additions and 4 deletions

View File

@@ -460,9 +460,9 @@ The Python plug-in provides smart editing for Python scripts. The feature set of
<registryKey defaultValue="true" description="Use a single port for communication between PyCharm and the debugger"
restartRequired="false" key="python.debug.use.single.port"/>
<registryKey defaultValue="500" description="Timeout between attempts to connect to remote debugger server"
<registryKey defaultValue="1000" description="Timeout between attempts to connect to remote debugger server"
restartRequired="false" key="python.debugger.remote.connect.retry.timeout.ms"/>
<registryKey defaultValue="20" description="Max attempts to connect to remote debugger server"
<registryKey defaultValue="30" description="Max attempts to connect to remote debugger server"
restartRequired="false" key="python.debugger.remote.connect.max.attempts"/>
<!-- typing -->

View File

@@ -90,8 +90,8 @@ public class RemoteDebugger implements ProcessDebugger {
private final long myHandshakeTimeout;
public RemoteDebugger(@NotNull IPyDebugProcess debugProcess, @NotNull String host, int port) {
int connectRetryTimeout = Registry.intValue("python.debugger.remote.connect.retry.timeout.ms", 500);
int connectMaxAttempts = Registry.intValue("python.debugger.remote.connect.max.attempts", 20);
int connectRetryTimeout = Registry.intValue("python.debugger.remote.connect.retry.timeout.ms", 1000);
int connectMaxAttempts = Registry.intValue("python.debugger.remote.connect.max.attempts", 30);
myDebugProcess = debugProcess;
myDebuggerTransport = new ClientModeDebuggerTransport(this, host, port, Duration.ofMillis(connectRetryTimeout), connectMaxAttempts);