18 karma · joined Mar 5, 2022 (4y ago) · 10 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
Unfortunately, shellcheck did not catch that. At least not with the default settings. But if you are implementing anything remotely security-critical, you should not be using shell anyway.
4.
Tell HN: Bountysource seems to have shut down
2 points · by ovex · 3y ago · discuss
comment 4y ago · link · parent
comment 4y ago · link · parent
Is there any dynamic content generation involved? I am wondering because the Gateway timeout hints at something behind nginx being the bottleneck. Don't you just serve static files? Maybe you could configure nginx to cache dynamic resources if they only change once a day or even consider turning dynamic resources into static resources by generating them once per day and serving them as static files.
comment 4y ago · link · parent
I don't know the internals of the (binary) protocol used for communication with the MySQL server though. Couldn't one just save the extra round-trip with length-prefixed strings by sending the query together with the parameters in a single message?
[1]: http://www.gosecure.it/blog/art/483/sec/mysql_escape_string-...
comment 4y ago · link · parent
comment 4y ago · link · parent
[1]: https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-stateme...