Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Filter not working

$
0
0
For the record, I found out how to make it work; I must set the buffer I create as being in memory, or the function ngx_buf_size() returns 0. Reading it's deffinition, we can see that it's meant to do so:

#define ngx_buf_size(b) \
(ngx_buf_in_memory(b) ? (off_t) (b->last - b->pos): \
(b->file_last - b->file_pos))

But the reason behind this decision is not clear to me.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>