网络编程
祂锝鈊
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
TCP Seq and Ack Numbers
Introduction This page will closely examine the Sequence and Acknowledgement numbers. The very purpose of their existence is related directly to the fact that the Internet, and generally most network原创 2012-03-21 14:15:24 · 1897 阅读 · 0 评论 -
epoll精髓
epoll精髓 在linux的网络编程中,很长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。 相比于select,epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在内核中的select实现中,它是采用轮询来处理的,轮询的fd数目越多,自然耗时越多。并且,在linux/posix_types.h头文件有这样的声明: #转载 2013-09-02 11:36:58 · 551 阅读 · 0 评论 -
Nginx 内存池(pool)分析
Nginx 内存池管理的源码在src/core/ngx_palloc.h、src/core/ngx_palloc.c 两个文件中。 先将我整理的注释等内容贴上,方便下面分析: ngx_create_pool:创建pool ngx_destory_pool:销毁 pool ngx_reset_pool:重置pool中的部分数据 ngx_palloc/ngx_pnalloc:从pool中分配转载 2015-01-12 15:50:27 · 810 阅读 · 0 评论
分享