Welcome! Log In Create A New Profile

Advanced

Strange behavior with custom module and http proxy

Brian Bruns
December 21, 2009 11:22AM
Hi all,

I have a module I've written which, as part of its processing
fork/execs another process. The child process forks again and exits
and the grandchild process is reparented to init and stays active for
60 seconds or longer depending.

This works just fine from the browser, scripts, etc... The problem
comes when I front end the module with the http proxy module for
caching. On the first (non-cached) call the request will not return
until the grandchild process dies (generally 60 seconds).

I'm at a loss as to what is causing this behavior as the grandchild as
mentioned had been reparented to init and the child process exited and
was reaped by successfully by nginx. I've put some logging statements
in ngx_http_finalize_request() and other places and it seems like my
module is finishing immediately, and the delay occurs somewhere in the
proxy module. I was hoping for some pointers as to architecturally
what might be happening or where might be good places to dig further.

Thanks,

Brian

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

Strange behavior with custom module and http proxy

Brian Bruns December 21, 2009 11:22AM

Re: Strange behavior with custom module and http proxy

Piotr Sikora December 21, 2009 11:40AM

Re: Strange behavior with custom module and http proxy

Brian Bruns December 21, 2009 12:08PM

Re: Strange behavior with custom module and http proxy

Piotr Sikora December 21, 2009 01:52PM

Re: Strange behavior with custom module and http proxy

Brian Bruns December 21, 2009 03:34PM

Re: Strange behavior with custom module and http proxy

Brian Bruns December 21, 2009 11:30PM

Re: Strange behavior with custom module and http proxy

Piotr Sikora December 22, 2009 08:48AM

Re: Strange behavior with custom module and http proxy

Brian Bruns December 22, 2009 11:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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