nginx_http_write_filter_module.c
Yuval Abadi
y.abadi at f5.com
Wed Jun 21 11:36:54 UTC 2023
Hi.
Nginx 1.23.2
The cpi ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in)
Loop over the request out buffers and in chain
If calculate size of combined buffer to write.
I add body replacement on chain.
It have value, but ngx_buf_size(cl->buf);
Return it have 0. Size.
(l->buf->last - cl->buf->pos) give the correct size
So the buffer not written.
Only the header part send back to client
Any idea?
023/06/21 10:45:31 [debug] 22962#22962: *3 write old buf t:1 f:0 00005600970D81E0, pos 00005600970D81E0, size: 179 file: 0, size: 0
2023/06/21 10:45:31 [debug] 22962#22962: *3 write new buf t:0 f:0 00005600970D8098, pos 00005600970D8098, size: 247 file: 0, size: 0
2023/06/21 10:45:31 [debug] 22962#22962: *3 http write filter: l:1 f:0 s:179
2023/06/21 10:45:31 [debug] 22962#22962: *3 http write filter limit 2097152
2023/06/21 10:45:31 [debug] 22962#22962: *3 writev: 179 of 179
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230621/5fae2fb9/attachment.htm>
More information about the nginx
mailing list