Releases: lyokha/nginx-haskell-module
Releases · lyokha/nginx-haskell-module
nginx-haskell-module version 2.6.5
- Improvements
- Allow multiple trailing Haskell code arguments in directive haskell compile to circumvent the too long parameter error in large code blocks.
- Other
- New online documentation at https://nginx-haskell-module.readthedocs.io/.
nginx-haskell-module version 2.6.4
Fixed segfaults in asynchronous content handlers when they throw errors.
nginx-haskell-module version 2.6.3
- Minor optimization: no hash for update and shm stats variables.
- Minor improvement: using sequential numbers instead of timestamps for marking changes in shared services' result variables.
nginx-haskell-module version 2.6.2
- Bug fixes
- Initialize the head buffer of async data right before running the async task.
- Other
- Package ngx-export-tools version 0.4.8.0. Implemented Eq and Ord instances for TimeInterval.
nginx-haskell-module version 2.6.1
Added directive haskell_var_empty_on_error to make values of variables bound to effectful synchronous and asynchronous variable handlers empty on errors while still logging the errors in the error log.
nginx-haskell-module version 2.6.0
- New features
- Added synchronous strict variable handlers which run in rewrite or log phases even if values of their variables are not consumed. They are declared using bang annotation prefixes before the variables.
- Bug fixes
- The cache for the nocacheable variables was not used after the first internal redirection.
- Other
- Pandoc examples were updated to compile with Pandoc 2.8.
nginx-haskell-module version 2.5.3
Fixed building of standalone modules with ghc 8.8.1.
Details: Pragma {-# OPTIONS_GHC -pgmPcpphs -optP--cpp #-} was replaced with {-# OPTIONS_GHC -pgmP "cpphs --cpp" #-} as -optP is no longer safe after fixing ghc issue #16737 in commit ghc/ghc@cfd3e0f when using it with a custom CPP program such as cpphs and FFI bits.
nginx-haskell-module version 2.5.2
- Portability fixes for exotic platforms where size of int differs from 4 bytes.
- Package ngx-export-tools version 0.4.6.0. Added function workerProcessIsExiting to check quickly in an exception handler whether a Haskell service has been interrupted because the worker process is exiting.
nginx-haskell-module version 2.5.1, ngx-export version 1.7.1
Added function ngxCachedPid to return the worker's PID cached in Nginx core.
nginx-haskell-module version 2.5.0, ngx-export version 1.7.0.1
- New features
- The normal synchronous and all asynchronous content handlers are expected to return a list of optional HTTP response headers (type ContentHandlerResult gets the 4th field).
- The aforementioned kinds of content handlers can now return authentic Nginx-styled responses (such as 502 Bad Gateway; see section Tips and tricks in README.md).
- Bug fixes
- All asynchronous Haskell handlers get proper masking against asynchronous exceptions, which is especially important for service handlers in presence of asynchronous exceptions from service hooks.
- The API exceptions were not accessible for using in the standalone approach.
- Other
- Minor improvements and optimizations.