Skip to content

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 18 May 18:37
· 184 commits to master since this release
393d896

v0.16.0 - 2026-05-18

Added

  • Configurable cache warmup timeout (#142, #180)
    • New cache_warmup_timeout config node (minimum 1s, default 30s)
    • New WORKERMAN_CACHE_WARMUP_TIMEOUT environment variable override
    • Removed hardcoded 30s constant from Runner

Security (breaking change)

  • RequestConverter no longer trusts X-Forwarded-Proto header unconditionally (#152)
    • HTTPS is now detected only from Workerman's actual SSL transport layer
    • Users behind reverse proxies must configure Symfony's trusted proxies to restore HTTPS detection

Fixed

  • Runner::run()mkdir() return value now checked; throws RuntimeException on failure instead of silent failure (#151)
  • Runner::run() — cache warmup timeout added; uses posix_kill() instead of exit() to avoid deadlock with extensions (e.g., grpc) (#141)
  • ProcessHandler/TaskHandler — dynamic method calls now validated; throws InvalidArgumentException when method doesn't exist instead of crashing the worker (#153)
  • Utils::cpuCount() — handles null from shell_exec('nproc') (e.g., minimal containers); returns 1 as safe fallback (#150)
  • PeriodicalTrigger — removed useless assert() calls (#178)
  • SchedulerWorker — exceptions in forked child processes are now logged with full diagnostic information instead of being silently swallowed (#178)
  • ServerManager — replaced hardcoded sleep(1) with a polling loop and configurable timeout for status/connections file generation (#155)
  • WorkermanCompilerPass — improved PHPDoc for referenceMap() (#171)

CI

  • Upgraded actions/checkout from v2 to v6.0.2 with SHA pinning (#172)
  • Pinned shivammathur/setup-php to commit SHA in tests workflow (#149, #175)