On Wed, 11 Sep 2013 17:52:54 GMT, Craig Dillabaugh wrote:

It appears to the localhost issue (I am on Linux). The following now works in my images.dt template.

  - MongoClient mongoclient = connectMongoDB("127.0.0.1");
  - auto image_lst = mongoclient.getCollection("cast-tiles.images");

And the reason my code was working in my app.d is that I made a call elsewhere to connectMongoDB("127.0.0.1") on my global g_mongo_client variable (hangs head). Thus using g_mongo_client.getCollection() worked fine because g_mongo_client was already initialized, but the call to connectMongoDB("localhost") hung likely due to the bug you mentioned.

Good to know. I've added a quick hack to ease the situation a bit until a proper host file parser is written - it happens too often that someone stumbles over this.