Commit d6d4683a authored by Marc Gravell's avatar Marc Gravell

save *all* the files!

parent 63421551
......@@ -8,14 +8,14 @@ static class Program
{
static async Task Main()
{
using (var pool = new Pipelines.Sockets.Unofficial.DedicatedThreadPoolPipeScheduler(minWorkers: 10, maxWorkers: 50,
priority: System.Threading.ThreadPriority.Highest))
//using (var pool = new Pipelines.Sockets.Unofficial.DedicatedThreadPoolPipeScheduler(minWorkers: 10, maxWorkers: 50,
// priority: System.Threading.ThreadPriority.Highest))
using (var resp = new MemoryCacheRedisServer(Console.Out))
using (var socket = new RespSocketServer(resp))
{
var options = new PipeOptions(readerScheduler: pool, writerScheduler: pool, useSynchronizationContext: false);
//var options = new PipeOptions(readerScheduler: pool, writerScheduler: pool, useSynchronizationContext: false);
socket.Listen(new IPEndPoint(IPAddress.Loopback, 6378)
, sendOptions: options, receiveOptions: options
// , sendOptions: options, receiveOptions: options
);
await resp.Shutdown;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment