v7.3.2018.0614 重构高性能资源池,减少GC压力,增加线程池,让异步任务得到平等竞争CPU的机会
大石头
编写于
2018-06-14 17:56:44
X
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NewLife.Net;
namespace NewLife.Http
{
/// <summary>Http服务器</summary>
[DisplayName("Http服务器")]
public class HttpServer : NetServer
{
/// <summary>实例化</summary>
public HttpServer()
{
Name = "Http";
Port = 80;
ProtocolType = NetType.Http;
// Http封包协议
//SessionPacket = new PacketFactory { Offset = -1 };
}
}
}
|