📓 Table of Contents 📚 Resources
A large repository of japanese subtitles that is updated reasonably often and has a clean design.| The most popular one, you can upload your own subs.| Often have to be retimed.
📓 Table of Contents 📚 Resources
A large repository of japanese subtitles that is updated reasonably often and has a clean design.| The most popular one, you can upload your own subs.| Often have to be retimed.
We had some trouble with the automatic reconnect in Mongoose. In particular, the available options reconnectTries
and reconnectInterval
are applied when another HTTP request came in, not after the connection dropped (as I would have expected). This is the solution I came up with (basically adapted and extended from this:
Keep reconnectTries
and reconnectInterval
low (but they don't really matter much in this solution anyway).
Use something like the following for connecting to the database:
// Database connection
const mongoose = require("mongoose")
const connect = async () => {