Sfoglia il codice sorgente

Use performance mode and a single TCP bind address.

Uses multiple cores and GC-less request processing for better performance.
Sönke Ludwig 9 anni fa
parent
commit
371f7220c6
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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);
 }