in reply to Re^3: Errors uncaught by CGI::Carp
in thread Errors uncaught by CGI::Carp

Not all resource limits are global. At $WORK we impose per-user limits

At $work do you throw a 500 error if a user exceeds their resources or do you send something more informative to the browser?

Replies are listed 'Best First'.
Re^5: Errors uncaught by CGI::Carp
by hippo (Archbishop) on Oct 15, 2021 at 08:32 UTC

    Depends which resource is being exceeded. Certainly if they try to exceed their RAM or CPU limits then the process will just die because there is no other action which could be taken and that will result in a 500, but what gets to the browser depends on what they've already sent by that stage. Exceeding other limits mostly just results in that action failing (eg. if they try to open a file past that limit then the file will not open so their code should test for that (as it always should anyway)).


    🦛