Re: 2: header already sent

2018-07-16 Thread Dk Jack
Thanks Roman, Passing NGX_OK to finalize_request also worked. I'll use that. Thanks for all you help. Dk PS: Requiring ev->data to be of type ngx_conn_t is a strange one. I thought it was for user data. On Mon, Jul 16, 2018 at 4:29 AM Roman Arutyunyan wrote: > Hi Dk Jack, > > On Sun, Jul 15,

Re: 2: header already sent

2018-07-16 Thread Roman Arutyunyan
Hi Dk Jack, On Sun, Jul 15, 2018 at 06:09:24PM -0700, Dk Jack wrote: > Hi Roman, > Sorry, it took a while for me to test the debug build. Since my module was > using timers, the debug logs in ngx_event_timer.{c,h} were causing a crash > (see end of email for details about the crash). Anyways, the

Re: 2: header already sent

2018-07-15 Thread Dk Jack
Hi Roman, Sorry, it took a while for me to test the debug build. Since my module was using timers, the debug logs in ngx_event_timer.{c,h} were causing a crash (see end of email for details about the crash). Anyways, the debug log attached at the end of the email. Looking at the debug logs, it

Re: 2: header already sent

2018-07-14 Thread Roman Arutyunyan
Hi, On Sat, Jul 14, 2018 at 05:21:02PM -0700, Dk Jack wrote: > Hi Roman, > Thanks for taking the time to respond to my question. > > I've tried your suggestion. I've done a finalize_req and tried > NGX_DONE/OK/... All give me the same result. I get the same result with or > without the

Re: 2: header already sent

2018-07-14 Thread Dk Jack
Hi Roman, Thanks for taking the time to respond to my question. I've tried your suggestion. I've done a finalize_req and tried NGX_DONE/OK/... All give me the same result. I get the same result with or without the finalize_req i.e. I still see the 'header already sent' message. I've experimented

Re: 2: header already sent

2018-07-14 Thread Roman Arutyunyan
Hi Dk Jack, On Fri, Jul 13, 2018 at 01:18:40PM -0700, Dk Jack wrote: > Sorry, I made a typo in my earlier email. Please read the following > sentence: > > "When I send the response in the *content* phase handler, I am am seeing > 'header already sent' messages in the error log." > > as > >

Re: 2: header already sent

2018-07-13 Thread Dk Jack
Sorry, I made a typo in my earlier email. Please read the following sentence: "When I send the response in the *content* phase handler, I am am seeing 'header already sent' messages in the error log." as "When I send the response in the *access* phase handler, I am am seeing 'header already