HarmonyHub
HarmonyHub copied to clipboard
Timeout on every ping
Hi,
I'm using the TestClient console application. Everytime the program tries to Ping the harmony hub I get a timeout. If I try to add the ping request as an interactive command like this:
switch (input)
{
case 'p':
await client.SendPingAsync();
break;
case 'a':
var activityId = await client.GetCurrentActivityIdAsync();
Console.ForegroundColor = ConsoleColor.Yellow;
it works fine other requests work fine too
the problem looks like some kind of deadlock related to calling the SendPingAsync from the timer event handler, but I cannot pinpoint what is the exact problem.
I checked with WireShark that the ping request is actually sent and that the hub answers it. And everything seems fine. but the _reader.Read() in NextElement never returns.
Do you have the same problem? Do you have any idea what's wrong?