[Lldb-commits] [lldb] r330578 - llgs-tests: Increase packet time out

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 23 04:22:44 PDT 2018


Author: labath
Date: Mon Apr 23 04:22:44 2018
New Revision: 330578

URL: http://llvm.org/viewvc/llvm-project?rev=330578&view=rev
Log:
llgs-tests: Increase packet time out

The default packet timeout of 1 second is a bit too small for these
tests, particularly as they are working in ack-mode, which means they
need to fit twice as many packets into the timeslot.

This does not seem to be a problem on the bots, but for some people
these tests are timing out regularly. I can't be sure increasing this
will solve their problem, but this does seem like a likely culprit.

Modified:
    lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp

Modified: lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp?rev=330578&r1=330577&r2=330578&view=diff
==============================================================================
--- lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp (original)
+++ lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp Mon Apr 23 04:22:44 2018
@@ -29,6 +29,7 @@ using namespace llgs_tests;
 
 TestClient::TestClient(std::unique_ptr<Connection> Conn) {
   SetConnection(Conn.release());
+  SetPacketTimeout(std::chrono::seconds(10));
 
   SendAck(); // Send this as a handshake.
 }




More information about the lldb-commits mailing list