|
@@ -45,12 +45,12 @@ namespace PRSServer
|
|
|
|
|
|
private void AcceptClient()
|
|
|
{
|
|
|
- Logger.Send(LogType.Information, "", "Waiting for client.");
|
|
|
+ Logger.Send(LogType.Information, "", "Waiting for OEM connection.");
|
|
|
listener.AcceptTcpClientAsync().ContinueWith(t =>
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- Logger.Send(LogType.Information, "", "Client Connected");
|
|
|
+ Logger.Send(LogType.Information, "", "OEM Connection opened; {Connections.Count} connections open.");
|
|
|
var connection = new OEMConnection(t.Result, Cache, Queue);
|
|
|
lock (connectionsLock)
|
|
|
{
|
|
@@ -62,6 +62,7 @@ namespace PRSServer
|
|
|
// When the connection finishes, we should remove it from our list.
|
|
|
lock (connectionsLock)
|
|
|
{
|
|
|
+ Logger.Send(LogType.Information, "", $"OEM Connection closed; {Connections.Count} connections still open.");
|
|
|
Connections.Remove(connection);
|
|
|
}
|
|
|
};
|
|
@@ -69,7 +70,7 @@ namespace PRSServer
|
|
|
connection.Run();
|
|
|
|
|
|
// Accept a new client.
|
|
|
- //AcceptClient();
|
|
|
+ AcceptClient();
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|