Welcome! Log In Create A New Profile

Advanced

How to insert something in the middle of the buf?

witekfl
October 17, 2012 06:26AM
Hi,
there is the code:
http://rkd.republika.pl/ngx_http_layout_filter_module.c

I want to insert the header before </head> and the footer before </body>.
If there is no </head> add the header as the first chunk.
If there is no </body> add the footer as the last chunk.

The problem is that, the number of waiting growing rapidly.
What is wrong with this code?
Could you provide a snippet how to insert something in the middle of
existing chunk
or how to do that right in this situation (reading from file)?
And why the number of waiting connections is growing so fast?

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

How to insert something in the middle of the buf?

witekfl 945 October 17, 2012 06:26AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 148
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