摘要: 每次客户端有可读数据触发时,优先检测是否还有数据没有发送,如果有则发送数据,然后在读取client数据 //向后端发送请求的调用过程 //ngx_http_upstream_send_request_body->ngx_output_chain->ngx_chain_writer static ng 阅读全文
posted @ 2020-10-29 16:56 codestacklinuxer 阅读(105) 评论(0) 推荐(0)
摘要: 向上游服务器发送请求处理 static void ngx_http_upstream_send_request(ngx_http_request_t *r, ngx_http_upstream_t *u, ngx_uint_t do_write) //向上游服务器发送请求 当一次发送不完,通过ngx 阅读全文
posted @ 2020-10-29 16:37 codestacklinuxer 阅读(100) 评论(0) 推荐(0)
摘要: 代理模式数据流处理: //配置proxy_pass后,在 ngx_http_core_content_phase 里面指向该函数 /* 那么,当有请求访问到特定的location的时候(假设这个location配置了proxy_pass指令), 跟其他请求一样,会调用各个phase的checker和 阅读全文
posted @ 2020-10-29 14:38 codestacklinuxer 阅读(137) 评论(0) 推荐(0)