Re: header already sent

2018-07-09 Thread Dk Jack
@Hung Nguyen, Sorry did not see your response. Looks like my email settings were incorrect and I was not receiving the emails. I am looking for a way to send custom response without having to change the config. Dk. On Fri, Jul 6, 2018 at 2:33 PM Dk Jack wrote: > Hi, > I thought I solved my iss

Re: header already sent

2018-07-09 Thread Dk Jack
@Maxim, Sorry did not see your response. Looks like my email settings were incorrect and I was not receiving the emails. I just want to discard the post body and respond with a custom status code and message. In my code, I call ngx_http_discard_request_body before I send the header i.e. the respon

Re: RSS

2018-07-09 Thread Sergey Budnevitch
I hope all reported issues were fixed, thank you. > On 9 Jul 2018, at 12:37, Gena Makhomed wrote: > > On 09.07.2018 11:39, Valentin V. Bartenev wrote: > >>> bot mitigation mechanism written as custom "C" module >>> or written using only njs, without 3rd party modules? > >> It's pretty easy to

Re: [nginx] How to check node has been deleted from rbtree?

2018-07-09 Thread 洪志道
Get it now, thank you. On Mon, Jul 9, 2018 at 8:24 PM Maxim Dounin wrote: > Hello! > > On Mon, Jul 09, 2018 at 07:51:47PM +0800, 洪志道 wrote: > > > As shown the subject, I wonder how to check some node has been deleted > from > > the red-black tree? > > No such information is provided. If you nee

Re: [nginx] How to check node has been deleted from rbtree?

2018-07-09 Thread Maxim Dounin
Hello! On Mon, Jul 09, 2018 at 07:51:47PM +0800, 洪志道 wrote: > As shown the subject, I wonder how to check some node has been deleted from > the red-black tree? No such information is provided. If you need it, you should implement it yourself or rewrite your code to avoid this requirement. In

[nginx] How to check node has been deleted from rbtree?

2018-07-09 Thread 洪志道
Hi. As shown the subject, I wonder how to check some node has been deleted from the red-black tree? The case is like the following: Step 1: node1 = ngx_rbtree_insert(...); node2 = ngx_rbtree_insert(...); node3 = ngx_rbtree_insert(...); Step 2: node = find_node_from_rbtree(...); remove_expired_n

Re: RSS

2018-07-09 Thread Gena Makhomed
On 09.07.2018 11:39, Valentin V. Bartenev wrote: bot mitigation mechanism written as custom "C" module or written using only njs, without 3rd party modules? It's pretty easy to write one using only njs. Can you make reference implementation open source under permissive software license? As

Re: RSS

2018-07-09 Thread Gena Makhomed
On 09.07.2018 10:41, Sergey Budnevitch wrote: atom-tags, atom-log, archive were removed from bot mitigation mechanism One more bug: If you try to open some page from RSS, for example: http://hg.nginx.org/nginx/rev/54683f650cbd you will see only plain html, this is not expected. Firefox F12

Re: RSS

2018-07-09 Thread Valentin V. Bartenev
On Monday, 9 July 2018 11:27:58 MSK Gena Makhomed wrote: > On 09.07.2018 10:41, Sergey Budnevitch wrote: > > >> https://hg.nginx.org/nginx/atom-log > >> https://hg.nginx.org/pkg-oss/atom-log > >> https://hg.nginx.org/nginx.org/atom-log > >> > >> stop working, instead of RSS feed html+javascript re

Re: RSS

2018-07-09 Thread Gena Makhomed
On 09.07.2018 10:41, Sergey Budnevitch wrote: https://hg.nginx.org/nginx/atom-log https://hg.nginx.org/pkg-oss/atom-log https://hg.nginx.org/nginx.org/atom-log stop working, instead of RSS feed html+javascript returned. RSSOwl can't execute javascript and don't see these RSS feeds. Also I can'

Re: RSS

2018-07-09 Thread Sergey Budnevitch
> On 08 Jul 2018, at 00:32, Gena Makhomed wrote: > > Hello, All! > > RSS > > https://hg.nginx.org/nginx/atom-log > https://hg.nginx.org/pkg-oss/atom-log > https://hg.nginx.org/nginx.org/atom-log > > stop working, instead of RSS feed html+javascript returned. > RSSOwl can't execute javascript