现在测试一个nginx生成一个子请求subrequest访问上游服务器
会有两种情况
1、当与客户端建立的request没有request body的时候,或者对客户端的request body 执行丢弃的时候
整个过程中,最终会在ngx_http_close_request中将count减少到255,log中会出现 “http request count is zero”
2、当与客户端建立的request有request,调用函数ngx_http_read_client_request_body
整个过程中,count变量正常减少到为0,正常结束
请问这是为什么?
在1中,是否要再某个地方将count加1的操作?