Testing database compression.

This commit is contained in:
2024-12-24 14:23:23 +01:00
parent 3f647a3e68
commit 0cfbcea252
7 changed files with 112 additions and 8 deletions
+2 -1
View File
@@ -181,7 +181,8 @@ public class IpScanner
_ = IPAddress.TryParse(ip.ToString(), out IPAddress? address);
if (address is not null)
{
responseCode = ping.Send(address, _timeout, buf, null).Status;
responseCode = IPStatus.TimedOut; //ping.Send(address, _timeout, buf, null).Status;
Thread.Sleep(1);
}
}
catch
+4 -4
View File
@@ -31,7 +31,7 @@ public class ThreadHandler
public void Start()
{
Thread scanner = new(StartScanner);
Thread indexer = new(StartContentFilter);
//Thread indexer = new(StartContentFilter);
Thread database = new(StartDbHandler);
Thread discarded = new(StartDiscardedDbHandler);
Thread filtered = new(StartFilteredDbHandler);
@@ -39,7 +39,7 @@ public class ThreadHandler
Thread communication = new(StartCommunicationHandler);
scanner.Start();
indexer.Start();
//indexer.Start();
database.Start();
discarded.Start();
filtered.Start();
@@ -47,7 +47,7 @@ public class ThreadHandler
communication.Start();
scanner.Join();
indexer.Join();
//indexer.Join();
database.Join();
discarded.Join();
filtered.Join();
@@ -101,7 +101,7 @@ public class ThreadHandler
private void StartDiscardedDbHandler()
{
WaitHandle[] wait = _dbHandler.Start(4);
WaitHandle[] wait = _dbHandler.Start(3);
WaitHandle.WaitAll(wait);