News for hackers. Stuff that matters.
Re:Ruby 3.2 preview 1 with support for WASM compilation by speedgoose on Friday April 08, 2022 @01:11AM (#30953536)
If you don’t stop long processes on a server, you expose yourself to denial of service attacks. It’s good practice to have a maximum duration for database queries as well.
Re:Ruby 3.2 preview 1 with support for WASM compilation by kookamamie on Friday April 08, 2022 @05:28AM (#30954995)
Of course you should limit the query duration - just not on some arbitrary function-level like done here. To me this sounds like PHP-level incompetence on API design.