diff --git a/NgxExport/Tools/ServiceHookAdaptor.hs b/NgxExport/Tools/ServiceHookAdaptor.hs index d340f69..047ddf1 100644 --- a/NgxExport/Tools/ServiceHookAdaptor.hs +++ b/NgxExport/Tools/ServiceHookAdaptor.hs @@ -214,8 +214,9 @@ import Control.Monad -- @ -- -- Both /changeSecretWord/ and /resetSecretWord/ alter the /secretWord/ storage. --- The order of their execution in a restarted worker process is not defined, --- and therefore the state of /secretWord/ can get altered in the new worker. +-- The order of their execution in a restarted worker process may differ from +-- the order they had happened before the new worker started, and therefore the +-- state of /secretWord/ can get altered in the new worker. -- -- To fix this issue in this example, get rid of hook /resetSecretWord/ and use -- directive /rewrite/ to process the reset request in location /\/change_sw/. diff --git a/README.md b/README.md index 61136e0..63090ba 100644 --- a/README.md +++ b/README.md @@ -1863,8 +1863,9 @@ ngxExportServiceHook 'resetSecretWord ``` Both *changeSecretWord* and *resetSecretWord* alter the *secretWord* storage. -The order of their execution in a restarted worker process is not defined, -and therefore the state of *secretWord* can get altered in the new worker. +The order of their execution in a restarted worker process may differ from +the order they had happened before the new worker started, and therefore the +state of *secretWord* can get altered in the new worker. To fix this issue in this example, get rid of hook *resetSecretWord* and use directive *rewrite* to process the reset request in location */change_sw*.