Sfoglia il codice sorgente

Update photon-http to implement http pipelining (#10148)

* Update photon-http to implement http pipelining

* Update to new naming in photon v0.15+

---------

Co-authored-by: Dmitry Olshansky <[email protected]>
Dmitry Olshansky 2 settimane fa
parent
commit
91d41d3589

+ 2 - 2
frameworks/D/photon-http/dub.json

@@ -5,8 +5,8 @@
 	"copyright": "Copyright © 2025, Dmitry Olshansky",
 	"copyright": "Copyright © 2025, Dmitry Olshansky",
 	"dependencies": {
 	"dependencies": {
 		"asdf": "~>0.7.17",
 		"asdf": "~>0.7.17",
-		"photon": "~>0.14.3",
-		"photon-http": "~>0.5.5"
+		"photon": "~>0.18.5",
+		"photon-http": "~>0.6.0"
 	},
 	},
 	"description": "Benchmark of photon-http",
 	"description": "Benchmark of photon-http",
 	"license": "BSL-1.0",
 	"license": "BSL-1.0",

+ 2 - 2
frameworks/D/photon-http/source/app.d

@@ -69,7 +69,7 @@ void server() {
 }
 }
 
 
 void main() {
 void main() {
-    startloop();
+    initPhoton();
     go(() => server());
     go(() => server());
-    runFibers();
+    runScheduler();
 }
 }