BillKeenan / dead-drop-python

secure 1 time message generator
https://dead-drop.me
72 stars 14 forks source link

try to initialize mongo if connection fails #10

Open BillKeenan opened 6 years ago

BillKeenan commented 6 years ago

if mongo is not running when this starts up, it will never connect.

https://github.com/BillKeenan/dead-drop-python/blob/e4f9bce01c3ba3cc18d2532b61f880bcc036e8af/deadWeb/dead.py#L52

BillKeenan commented 6 years ago

actually it does fail!! but only in the uwsgi server...

BillKeenan commented 6 years ago

maybe use auto_retry https://stackoverflow.com/questions/9837631/how-to-check-in-pymongo-is-connection-is-still-alive#9860279