mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-19 23:35:54 -04:00
dump stack trace and don't return browser to pool on critical error where chrome process might still be running
This commit is contained in:
parent
ed92f3bd53
commit
56a721f059
@ -138,8 +138,9 @@ class AmqpBrowserController:
|
||||
self.logger.info('browser={} client_id={} url={}'.format(browser, client_id, url))
|
||||
try:
|
||||
browser.browse_page(url, on_request=on_request)
|
||||
finally:
|
||||
self._browser_pool.release(browser)
|
||||
except:
|
||||
self.logger.critical("problem browsing page, may have lost browser process", exc_info=True)
|
||||
|
||||
import random
|
||||
threadName = "BrowsingThread{}-{}".format(browser.chrome_port,
|
||||
|
Loading…
x
Reference in New Issue
Block a user