Skip to content

loadbear v0.2.0

Choose a tag to compare

@weaztoven weaztoven released this 15 Nov 10:31
· 13 commits to main since this release

Note: in v0.1.x, sending SIGHUP terminated the process. Upgrade if you rely on signals.

Added

  • Linux/macOS SIGHUP reload of backend URLs, weights and selection strategy. Unchanged backends keep their state (health, counters, circuit breaker) and in-flight requests are not interrupted. An invalid config is rejected and the running config is kept. Other settings (listen addresses, timeouts, health-check settings, rate limiting, logging) still require a restart.
  • Integration tests for HTTP/1.1 upgrade handshakes and bidirectional byte echo through the proxy.

Fixed

  • SIGHUP terminated the process instead of reloading. It is now handled separately from the shutdown signals.
  • Upgrade and Connection headers were stripped from every request, which broke WebSocket upgrades. They are now preserved for upgrade requests only; upgrade requests are never retried.
  • The access-log response wrapper did not implement http.Hijacker and http.Flusher, which prevented upgrade tunnels.
  • Backend lists held by the metrics and health-check components were read and written without synchronization.