MongoSocketReadException: Prematurely reached end of stream (after a period of inactivity)
I found it in some documentation: For long running applications, it is often prudent to enable “keepAlive” with a number of milliseconds. Without it, after some period of time you may start to see “connection closed” errors for what seems like no reason. Check if this helps. When you connect to mongoDB you can pass … Read more