Преглед на файлове

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);
 }