I'm running a small webservice that gets data from a user specified database, and some of those queries are heavy and often take longer than usual, because those rows contain base64 images and other needed stuff. When my queries take longer than 30 secs CI crashes somehow. I've tried using $this->db->_error_number(), $this->db->_error_message() and
if ($this->db->trans_status() === FALSE) {
die('Wops, something weird happened...');
}
But none of them gives me error infos. Anybody knows how to capture those timeout errors and echo them to the user? Thanks.
EDIT:
log output:
...
DEBUG - 2015-04-10 10:34:34 --> Controller "Main" Initialized
DEBUG - 2015-04-10 10:34:34 --> Helper loaded: log_helper
DEBUG - 2015-04-10 10:34:34 --> Database Driver Class Initialized
DEBUG - 2015-04-10 10:35:04 --> Final output sent to browser
DEBUG - 2015-04-10 10:35:04 --> Total execution time: 30.0145
...
set_time_limit(0);but the result is the same.memory limitto a higher value e.g 1024 MB.max_allowed_packetto a very high value, but the issue still persists.