mmanos / laravel-search

A search package for Laravel 5.
MIT License
352 stars 59 forks source link

Catch Timeout, how? #29

Open hmpmarketing opened 9 years ago

hmpmarketing commented 9 years ago

Im using this library to write info to ES realtime on an adserver. Im wondering how I would be able to catch a timeout and continue instead of stopping the script.

Regards

dmyers commented 8 years ago

This is a good question. I would think an exception would be thrown. Is your script just getting shut down? You could set the time limit at the top of your initial script which should help.

set_time_limit(0);