mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-08 22:42:32 -04:00
properly handle socket.error from amqp conn.drain_events (was previously diagnosed as error starting browser)
This commit is contained in:
parent
f40bd39e1a
commit
ab86426475
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ class AmqpBrowserController:
|
|||
break # out of "while True" to acquire another browser
|
||||
except socket.timeout:
|
||||
pass
|
||||
except socket.error:
|
||||
self.logger.error("problem consuming messages from AMQP, will try reconnecting after active browsing finishes", exc_info=True)
|
||||
self._reconnect_requested = True
|
||||
|
||||
if self._consumer_stop.is_set() or time.time() - start >= timeout or self._reconnect_requested:
|
||||
browser.stop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue