Reputation: 9
I have a back-end server in Laravel, it receives API requests to provide data and reports based on data from the database. A Request arrives at the controller and the service part begins to prepare a response (sometimes up to several minutes) At this time, on the side of the Client who sent the request, timeout = 30 may occur, and the request will stop. How can I determine on the server side that the request is “broken” and there is no point in sending a response?
method
connection_aborted()) {
// Connection aborted by client
Log::error('Connection aborted by client');
}
doesn't work - always returns '0'
Upvotes: -3
Views: 39