Thanks, That means we need move some configuration commands form server to main section. We will review the logic Lei On Thu, Jun 23, 2022, 01:51 Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Mon, Jun 20, 2022 at 04:05:53PM +0800, shanlei@asiainfo.com wrote: > > > Hello, guys, > > > > Recently I have been working on an nginx c module, which have tby shanlei - Nginx Development
Hello, guys, Recently I have been working on an nginx c module, which have to leverage on init_process routine.The logic is based on instruction command which may be configured inside stream.server, I have to do some work in the init_process routine, for example, to schedule a timer. I did google a while ,and decide to using code snippet like below: ============================ ngx_stream_cby shanlei - Nginx Development
helloļ¼Dounin, I also had read many discussions , confusing how to properly maintain the dependency orders. So despite the usage of thread pool module, I think it's a principal to call the plugin's construction , then call their destruction functions in reverse order, when we design some kind of dynamic plugin mechanism. Does that make sense? Or nginx has some consideration to force destructby shanlei - Nginx Development
# HG changeset patch # User stdanley <shanlei@asiainfo.com> # Date 1650788278 -28800 # Sun Apr 24 16:17:58 2022 +0800 # Node ID 522acbe88486d027383075c8208edd6fcc0a3aa6 # Parent a736a7a613ea6e182ff86fbadcb98bb0f8891c0b patch: call modules' exit_process in reverse order to solve module dependency. We once have developed a module which depends on ngx_thread_pool module. but nginx hungsby shanlei - Nginx Development
Inside nginx blog: "Managing request headers" , there is a method: search_headers_in which can search for arbitrary headers, however this method use ngx_strcasecmp( "ngx_strcasecmp(u_char *s1, u_char *s2)") which assume the input s1 must be '\0' terminated. so inside the code below, this function may get wrong result , beause name is not '\0\ terminated. " if (len !by shanlei - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |