Ejemplo n.º 1
0
        public bool LoadConfig()
        {
            var configs = ConfigHelper.LoadServerConfig();

            _Config = new HttpServerConfigure();

            _Config.InitCommand(configs.CommandList);

            //设置主机头
            _Config.HostList    = configs.HostList;
            _Config.Port        = configs.Port;
            _Config.SendThreads = configs.SendThreads;

            MaxPostLength     = configs.MaxPostLength;
            MaxHeaderLines    = configs.MaxHeaderLines;
            MaxQueuedRequests = configs.MaxQueuedRequests;

            return(true);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 初始化
 /// </summary>
 public HttpServer()
 {
     _Config = new HttpServerConfigure();
 }
Ejemplo n.º 3
0
        public bool LoadConfig()
        {
            var configs =  ConfigHelper.LoadServerConfig();
            _Config = new HttpServerConfigure();

            _Config.InitCommand(configs.CommandList);

            //设置主机头
            _Config.HostList = configs.HostList;
            _Config.Port = configs.Port;
            _Config.SendThreads = configs.SendThreads;

            MaxPostLength = configs.MaxPostLength;
            MaxHeaderLines = configs.MaxHeaderLines;
            MaxQueuedRequests = configs.MaxQueuedRequests;

            return true;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 初始化
 /// </summary>
 public HttpServer()
 {
     _Config = new HttpServerConfigure();
 }