Replies: 3 comments 4 replies
-
|
Please detail what runtime you are using this with. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mnapoli , runtime: php-83-fpm |
Beta Was this translation helpful? Give feedback.
-
|
Right, I understand your point. I'm just wondering, from what I can tell in the logs bref is actually the part of the stack that kills the request early if it hits 26s (it seems to do this to avoid having lambda itself terminate the process). If that's the case, I'm wondering if this is a potential improvement worth submitting a ticket for -- allow the user to register a shutdown function of some sort that gets called to wrap up the request instead of bref's cutoff behavior. If not, I will just move on and do this the dirty way putting a timer in my code, or the right way adding an nginx proxy inbetween . |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to avoid the default bref-php timeout behavior because it returns a 500 error without any descriptive body, which makes my customers keep trying the API.
I would like to do something like this :
set_time_limit(3);
register_shutdown_function(function() {
});
However, set_time_limit doesn't appear to be doing anything. Would really appreciate advice on how to achieve this without having to do constant 'how long has it been since this script was invoked' checks throughout my code.
Beta Was this translation helpful? Give feedback.
All reactions