Menu

Commit [r4067]  Maximize  Restore  History

Modified debugger error handling: where a connection attempt fails, waits .1 seconds before trying again. Ideally, we should wait for some condition rather than using a fixed time, but it's not clear what we need to wait for (or whether the condition is internal to the JDI implementation, where we have no access to check it). Experimentally, DebugTest.testStartupAndShutdown() fails for me about 50% of the time without the wait, throwing a "java.net.ConnectException: Connection refused"; with the wait, the test is always successful.

dlsmith 2007-01-18

changed /trunk/drjava/src/edu/rice/cs/drjava/model/debug/EventHandlerThread.java
changed /trunk/drjava/src/edu/rice/cs/drjava/model/debug/JPDADebugger.java
/trunk/drjava/src/edu/rice/cs/drjava/model/debug/EventHandlerThread.java Diff Switch to side-by-side view
Loading...
/trunk/drjava/src/edu/rice/cs/drjava/model/debug/JPDADebugger.java Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB