pull/1/head
a.bozhenov 5 years ago
parent 55d2e76eed
commit 7e0b1898ab

@ -29,7 +29,7 @@ namespace TestApp
Log.Info($"RPS: {counter}");
Interlocked.Exchange(ref counter, 0);
});
for (int i = 0; i < int.MaxValue; i++)
while(true)
{
try
{

@ -393,7 +393,7 @@ namespace ZeroLevel.Network
_send_queue = new BlockingCollection<SendInfo>();
continue;
}
while (_stream.CanWrite == false || Status != SocketClientStatus.Working)
while (_stream?.CanWrite == false || Status != SocketClientStatus.Working)
{
try
{

@ -8,6 +8,11 @@ namespace ZeroLevel.Network
internal sealed class ExClientServerCachee
: IDisposable
{
static ExClientServerCachee()
{
Sheduller.RemindEvery(TimeSpan.FromSeconds(30), () => { Log.Info(string.Join("\r\n", _clientInstances.Keys)); });
}
private static readonly ConcurrentDictionary<string, ExClient> _clientInstances = new ConcurrentDictionary<string, ExClient>();
private static readonly ConcurrentDictionary<string, object> _clientLocks = new ConcurrentDictionary<string, object>();

Loading…
Cancel
Save

Powered by TurnKey Linux.