Skip to content

Commit

Permalink
Keep workaround for IPv6 multicast in UDP test
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Jul 2, 2024
1 parent 3dce7fc commit 1de2541
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion cpp/test/Ice/udp/AllTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,21 @@ allTests(Test::TestHelper* helper)
while (nRetry-- > 0)
{
replyI->reset();
objMcast->ping(reply);
try
{
objMcast->ping(reply);
}
catch (const Ice::SocketException&)
{
// Multicast IPv6 not supported on the platform.
if (communicator->getProperties()->getProperty("Ice.IPv6") == "1")
{
cout << "(not supported) ";
ret = true;
break;
}
throw;
}

ret = replyI->waitReply(5, chrono::seconds(2));
if (ret)
Expand Down

0 comments on commit 1de2541

Please sign in to comment.