Hi Kevin,

Thanks for your insights. After changing socketTimeoutMS (EX below), the program ended without error.

mongocxx::uri uri("mongodb://127.0.0.1:27017/?socketTimeoutMS=6000000");

I believe the error stems from the fact that the insert call takes a very long time to return and exceeded the time-out limit.