瀏覽代碼

Use performance mode and a single TCP bind address.

Uses multiple cores and GC-less request processing for better performance.
Sönke Ludwig 9 年之前
父節點
當前提交
371f7220c6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      frameworks/D/vibed/source/mongodb.d

+ 2 - 0
frameworks/D/vibed/source/mongodb.d

@@ -16,6 +16,8 @@ shared static this()
 	router.registerWebInterface(new WebInterface);
 
 	auto settings = new HTTPServerSettings;
+	settings.bindAddresses = ["0.0.0.0"];
+	settings.options |= HTTPServerOption.distribute;
 	settings.port = 8080;
 	listenHTTP(settings, router);
 }