Skip to content

Commit

Permalink
small update in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lyokha committed Mar 11, 2024
1 parent 7dac8de commit 397b8ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions NgxExport/Tools/ServiceHookAdaptor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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/.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*.
Expand Down

0 comments on commit 397b8ec

Please sign in to comment.