Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] The timeout in the DbgpDebuggingEngineCommunicator.communicate()

Hi,

DbgpDebuggingEngineCommunicator.communicate() calls this method:


    private DbgpResponsePacket receiveResponse(int transactionId)
            throws IOException, InterruptedException {
        return engine.getResponsePacket(transactionId, TIMEOUT);
    }

there a timeout is given to the engine of 500 seconds i think.

The problem is that i dont want a timeout or if there is a time it i want Integer.MAX_VALUE.

This is because if i debug a method and then press Resume in the debugger
a DbgpContinuationCommand (RUN_COMMAND) is done.
That one just keeps waiting for the next event to arrive.

That can be again a suspend one.
But if a user doesnt do anything (drinks a cup of coffee) for 10 minutes then bang the timeout occurs
after that everything is in an invalid state...

Because if the user now triggers an method in the client. Then the clients hangs because the clients send something
to the debugger but the debugger never reads that anymore.

So everything hangs.

I really want to wait forever on it or until the client somehow shutdown..
How can we make this configurable?

johan
 


Back to the top