This commit is contained in:
2024-11-28 10:26:44 +01:00
parent d3270d3117
commit 69a22fb3eb
13 changed files with 8 additions and 8 deletions
+3 -1
View File
@@ -53,7 +53,7 @@ public class Communication
CommunicationObject? communicationObject = JsonSerializer.Deserialize<CommunicationObject>(message);
rep.SendFrame(JsonSerializer.SerializeToUtf8Bytes("Success"));
//rep.SendFrame(JsonSerializer.SerializeToUtf8Bytes("Success"));
if (communicationObject is null)
{
@@ -164,6 +164,8 @@ public class Communication
_contentFilter.SetTimeout(value);
}
rep.SendFrame(JsonSerializer.SerializeToUtf8Bytes("Success"));
break;
}
}
+2 -3
View File
@@ -117,7 +117,6 @@ public class IpScanner
if (_discardedQueue.Count >= 2000)
{
Console.WriteLine("loooooooooooooooooooooooooooool");
Thread.Sleep(500);
}
@@ -143,9 +142,9 @@ public class IpScanner
responseCode = ping.Send(address, _timeout, buf, null).Status;
}
}
catch (Exception e)
catch
{
Console.WriteLine(e);
//
}
if (responseCode != IPStatus.Success)
+2 -2
View File
@@ -51,7 +51,7 @@ public class ThreadHandler
{
Thread.Sleep(10000); // Let the database handler instantiate and warm up first.
WaitHandle[] wait = _ipScanner.Start(64);
WaitHandle[] wait = _ipScanner.Start(4);
WaitHandle.WaitAll(wait);
@@ -78,7 +78,7 @@ public class ThreadHandler
private void StartDiscardedDbHandler()
{
WaitHandle[] wait = _dbHandler.Start(4);
WaitHandle[] wait = _dbHandler.Start(2);
WaitHandle.WaitAll(wait);