Repository navigation
v0.2.3
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 refusesunsafecode 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.mdhas the measurement.
Changed
deploy/httpdog.serviceputs 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 withgroup_bygrow 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 runsudo systemctl daemon-reload && sudo systemctl restart httpdog.