December 22th Tuesday 2009
来源:互联网 发布:golang http 反向代理 编辑:程序博客网 时间:2024/06/14 00:41
In nginx, during parsing the configure file the function ngx_mail_block() is called. The function ngx_mail_block() allocate buffer for main configure information and server configure information. At one time the create_main_conf() and the create_srv_conf() hooks in all mail module are invoked. And so on, the init_main_conf() and the merge_srv_conf() are both called. At the end of the function ngx_mail_block(), ngx_mail_optimize_servers() is called.
In the function ngx_mail_optimize_servers(), the following code is so important.
...
ls = ngx_create_listening(cf, addr[i].sockaddr, addr[i].socklen);
if (ls == NULL) {
return NGX_CONF_ERROR;
}
ls->addr_ntop = 1;
ls->handler = ngx_mail_init_connection;
ls->pool_size = 256;
...
The ngx_mail_init_connection() is set. OK. The function ngx_mail_init_connection() is started for a connection.
The above is for the mail module. The http module is similar to it.
- December 22th Tuesday 2009
- December 15th Tuesday 2009
- December 17th Tuesday 2009
- December 24th Tuesday 2009
- December 29th Tuesday 2009
- 2008 December 9th Tuesday
- 2008 December 16th Tuesday
- 2008 December 23th Tuesday
- 2008 December 30th Tuesday
- December 13th Tuesday (十二月 十三日 木曜日)
- September 22th Tuesday 2009
- December 4th Tuesday (十二月 四日 火曜日)
- December 11th Tuesday (十二月 十一日 火曜日)
- December 18th Tuesday (十二月 十八日 火曜日)
- December 25th Tuesday (十二月 二十五日 火曜日)
- October 22th Tuesday
- September 8th Tuesday 2009
- December 3th Thursday 2009
- 使用存储过程并返回值与及返回值的获得方法
- 饶雪漫经典语录
- 没有技巧的技巧
- 使用memcached实现session远程分布式存储
- 对功率因数表的测测定
- December 22th Tuesday 2009
- 28.5.3 用户与权限管理
- 改进基于filter的远程分布式session存储
- mdadm使用详解及RAID 5简单分析
- oracle的分析函数over 及开窗函数
- 在CSDN网店买的书终于收到了....
- 儿歌
- F#程序设计-函数式编程之函数组合(Function Composition)
- 正视内心