Welcome! Log In Create A New Profile

Advanced

Re: zero size ошибка при добавлении текста в body filter

February 06, 2012 08:43PM
и при передаче цепочки из ngx_output_chain тоже что-то не так:


66 return ctx->output_filter(ctx->filter_ctx, in);
(gdb) p *(in->buf)
$1 = {pos = 0x0, last = 0x0, file_pos = 0, file_last = 6506, start = 0x0,
end = 0x0, tag = 0x0, file = 0x8ac1c4c, shadow = 0x0, temporary = 0,
memory = 0, mmap = 0, recycled = 0, in_file = 1, flush = 0, sync = 0,
last_buf = 1, last_in_chain = 1, last_shadow = 0, temp_file = 0, num = 0}
(gdb) step
ngx_http_my_body_filter (r=0x8ac1048, in=0xbf86de74)
at /home/me/workspace/nginx_module/ngx_http_my_module.c:104
104 {
(gdb) p *(in->buf)
$2 = {pos = 0x0, last = 0x0, file_pos = 0, file_last = 0,
start = 0x196a <Address 0x196a out of bounds>, end = 0x0, tag = 0x0,
file = 0x0, shadow = 0x0, temporary = 0, memory = 0, mmap = 1,
recycled = 1, in_file = 0, flush = 0, sync = 1, last_buf = 0,
last_in_chain = 0, last_shadow = 0, temp_file = 1, num = 0}
Subject Author Posted

zero size ошибка при добавлении текста в body filter

mishalunin February 06, 2012 07:38PM

Re: zero size ошибка при добавлении текста в body filter

mishalunin February 06, 2012 08:43PM

Re: zero size ошибка при добавлении текста в body filter

Maxim Dounin February 07, 2012 03:58AM

Re: zero size ошибка при добавлении текста в body filter

mishalunin February 07, 2012 05:57AM

Re: zero size ошибка при добавлении текста в body filter

Maxim Dounin February 07, 2012 08:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 325
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready