Skip to content

Commit 6a0d7dc

Browse files
authored
Fix: primary_configuration_timeout as configurable field in UrDriverConfiguration (#489)
This PR adds changes the timeout waiting for the initial configuration data package to 10 seconds. In some circumstances it can happen that this package takes some time to arrive. It is not really meant as a timeout in terms of "Something is going too slow here", it's more a "Wait until you get this. We'll add a timeout here, just in case that we ever get to this point without a real primary interface being on the other side and we would like to avoid waiting forever on something that will never happen". Basically, we only want to catch the unlikely case that the driver connects to something that is not a UR primary interface and avoid waiting forever.
1 parent f96fe15 commit 6a0d7dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ur/ur_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void UrDriver::init(const UrDriverConfiguration& config)
9898

9999
startPrimaryClientCommunication();
100100

101-
std::chrono::milliseconds timeout(1000);
101+
std::chrono::milliseconds timeout(10000);
102102
try
103103
{
104104
waitFor([this]() { return primary_client_->getConfigurationData() != nullptr; }, timeout);

0 commit comments

Comments
 (0)