Skip to content

v0.2.3

Choose a tag to compare

@github-actions github-actions released this 15 Nov 19:44
· 12 commits to main since this release

The program behaves the same as 0.2.2. The changes are in the systemd unit file, the documentation, and a guarantee about the code.

Added

  • #![forbid(unsafe_code)] in the library and the binary: the compiler now refuses unsafe code in httpdog itself. There was none; this keeps it that way.

Documentation

  • The README says what httpdog being written in Rust buys: speed, with the measured rate (250,000 to 500,000 lines a second on a laptop, depending on the rules), and memory safety for a program that reads text chosen by attackers. docs/limits.md has the measurement.

Changed

  • deploy/httpdog.service puts a ceiling of 256 MB on httpdog's memory (MemoryMax=256M, MemorySwapMax=0). httpdog normally uses a few megabytes, but the counters of a rule with group_by grow with the number of distinct groups, and nothing limited that. At the ceiling the kernel kills httpdog and systemd restarts it with empty counters. To get it, install the new unit file and run sudo systemctl daemon-reload && sudo systemctl restart httpdog.