会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
坐看云起时
乘风好去,长空万里,直下看山河!!! 研究过httpserver、nginx、内核tcpip协议栈源码,内存管理 、摄像头-iic-spi等驱动!! 目前搞搞准入 看看内核 看看身份逻辑 看看管控 写写go
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
56
57
58
59
60
61
62
63
64
···
70
下一页
2020年1月7日
nginx&http 第三章 ngx HTTP 请求的 11 个处理阶段
摘要: nginx 将一个 HTTP 请求分为 11 个处理阶段,这样做让每一个 HTTP 模块可以仅仅专注于完成一个独立、简单的功能,而一个请求的完整处理过程可以由多个 HTTP 模块共同合作完成将一次 HTTP 请求划分为 11 个处理阶段,通过每个阶段内部多个 HTTP 模块流水式的处理请求 HTTP
阅读全文
posted @ 2020-01-07 22:13 codestacklinuxer
阅读(616)
评论(0)
推荐(0)
2020年1月6日
调试 工具
摘要: ss、lsof、traceroutetracepathnc、netstat、telnetwget和curl基础功能有诸多重叠,如下载等。在高级用途上的curl由于可自定义各种请求参数所以长于模拟web请求,用于测试网页交互(浏览器);wget由于支持ftp和Recursive所以长于下载,用于下载文
阅读全文
posted @ 2020-01-06 22:21 codestacklinuxer
阅读(204)
评论(0)
推荐(0)
等待
摘要: 111
阅读全文
posted @ 2020-01-06 22:19 codestacklinuxer
阅读(273)
评论(0)
推荐(0)
tcp v4 connect 三次路由查找 route
摘要: https://www.cnblogs.com/codestack/p/12629487.html tcp_v4_connect调用栈如下 rt = ip_route_connect(fl4, nexthop, inet->inet_saddr, RT_CONN_FLAGS(sk), sk->sk_
阅读全文
posted @ 2020-01-06 22:17 codestacklinuxer
阅读(364)
评论(0)
推荐(0)
共享内存 设计原理-shm
摘要: POSIX的shm_open()在/dev/shm/下打开一个文件,用mmap()映射到进程自己的内存地址 System V的shmget()得到一个共享内存对象的id,用shmat()映射到进程自己的内存地址 目前这里主要看 System V的设计 这里先说一说设计思路!! 进程A和进程B 由于地
阅读全文
posted @ 2020-01-06 22:14 codestacklinuxer
阅读(992)
评论(0)
推荐(0)
2020年1月5日
nginx&http 第三章 ngx 事件http 初始化1
摘要: 在 http 配置块中,我们配置了 http 连接相关的信息,HTTP 框架也正是从这里启动的 在 nginx 初始化的过程中,执行了 ngx_init_cycle 函数,其中进行了配置文件解析,调用了 ngx_conf_parse 函数 函数 ngx_conf_handler 根据配置项的 com
阅读全文
posted @ 2020-01-05 22:56 codestacklinuxer
阅读(473)
评论(0)
推荐(0)
nginx&http 第三章 ngx 事件event accept epoll /init
摘要: tcp 三次握手成功后,listen fd 可读,在process_event_timer 中调用rev->handler(rev)处理; 其回调函数为: ngx_event_accept /* 如何建立新连接 上文提刭过,处理新连接事件的回调函数是ngx_event_accept,其原型如下。vo
阅读全文
posted @ 2020-01-05 20:33 codestacklinuxer
阅读(435)
评论(0)
推荐(0)
nginx&http 第三章 ngx 事件event epoll 处理
摘要: 1. epoll模块命令集 ngx_epoll_commands epoll模块上下文 ngx_epoll_module_ctx epoll模块配置 ngx_epoll_module static ngx_command_t ngx_epoll_commands[] = { /* 在调用epoll_
阅读全文
posted @ 2020-01-05 20:03 codestacklinuxer
阅读(743)
评论(0)
推荐(0)
nginx&http 第二章 ngx 事件event初始化 ngx_event_process_init
摘要: | (ngx_worker_process_cycle->ngx_worker_process_init) | >for(;;) {ngx_process_events_and_timers()} ngx_start_worker_processes | ngx_processes[]相关的操作赋值
阅读全文
posted @ 2020-01-05 19:46 codestacklinuxer
阅读(567)
评论(0)
推荐(0)
2020年1月2日
nginx&http 第二章 ngx 事件event配置等初始化
摘要: 1. event事件模块的配置 events { use epoll; worker_connections 1024; } event事件模块,配置分为两层:ngx_events_module 事件模块 和 ngx_event_core_module 事件核心模块。 ngx_events_modu
阅读全文
posted @ 2020-01-02 19:36 codestacklinuxer
阅读(520)
评论(0)
推荐(0)
上一页
1
···
56
57
58
59
60
61
62
63
64
···
70
下一页