2 ms·
> I now have some Go websites running for a long time with daily Systemd restarts. Are the restarts needed because there's malicious over-size content being se
by justinclift 3y ago
> I now have some Go websites running for a long time with daily Systemd restarts.
Are the restarts needed because there's malicious over-size content being sent to it, trying to exhaust the server resources?
If so, then "http.MaxBytesReader" might be helpful:
https://github.com/sqlitebrowser/dbhub.io/blob/5c9e1ab1cfe0f59b25fb78a576c0cac429323cad/webui/main.go#L5447 https://github.com/sqlitebrowser/dbhub.io/blob/5c9e1ab1cfe0f...
- ilyt 3y agoI'm guessing he forgot null check