From a78a6f711876d640e2839de209fcf7be4dc75640 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sun, 27 Jun 2021 14:59:59 -0700 Subject: [PATCH 1/3] allow forwarding `reusePort`; use asynctools instead of fork now that PR was merged --- jester.nim | 4 ++-- jester.nimble | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jester.nim b/jester.nim index 386dcca..5890ea9 100644 --- a/jester.nim +++ b/jester.nim @@ -498,10 +498,10 @@ proc serve*( proc (req: httpbeast.Request): Future[void] = {.gcsafe.}: result = handleRequest(jes, req), - httpbeast.initSettings(self.settings.port, self.settings.bindAddr) + httpbeast.initSettings(self.settings.port, self.settings.bindAddr, reusePort = self.settings.reusePort) ) else: - self.httpServer = newAsyncHttpServer(reusePort=self.settings.reusePort) + self.httpServer = newAsyncHttpServer(reusePort = self.settings.reusePort) let serveFut = self.httpServer.serve( self.settings.port, proc (req: asynchttpserver.Request): Future[void] {.gcsafe, closure.} = diff --git a/jester.nimble b/jester.nimble index eeb64c1..8bf4f58 100644 --- a/jester.nimble +++ b/jester.nimble @@ -17,4 +17,4 @@ when not defined(windows): task test, "Runs the test suite.": exec "nimble install -y asynctools@#0e6bdc3ed5bae8c7cc9" - exec "nim c -r tests/tester" \ No newline at end of file + exec "nim c -r tests/tester" From d365c178c605714a4d561d80a8d5b645f954cdfb Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sun, 27 Jun 2021 15:01:00 -0700 Subject: [PATCH 2/3] bump version --- jester.nim | 2 +- jester.nimble | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jester.nim b/jester.nim index 5890ea9..bb684e8 100644 --- a/jester.nim +++ b/jester.nim @@ -74,7 +74,7 @@ type of RouteCode: data: ResponseData -const jesterVer = "0.5.0" +const jesterVer = "0.6.0" proc toStr(headers: Option[RawHeaders]): string = return $newHttpHeaders(headers.get(@({:}))) diff --git a/jester.nimble b/jester.nimble index 8bf4f58..d17be37 100644 --- a/jester.nimble +++ b/jester.nimble @@ -1,6 +1,6 @@ # Package -version = "0.5.0" # Be sure to update jester.jesterVer too! +version = "0.6.0" # Be sure to update jester.jesterVer too! author = "Dominik Picheta" description = "A sinatra-like web framework for Nim." license = "MIT" From 8ba1e1a1efa885b174729929bf0972c25f3782d4 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sat, 3 Jul 2021 12:00:57 -0700 Subject: [PATCH 3/3] change version --- jester.nim | 2 +- jester.nimble | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jester.nim b/jester.nim index bb684e8..56ff27e 100644 --- a/jester.nim +++ b/jester.nim @@ -74,7 +74,7 @@ type of RouteCode: data: ResponseData -const jesterVer = "0.6.0" +const jesterVer = "0.5.1" proc toStr(headers: Option[RawHeaders]): string = return $newHttpHeaders(headers.get(@({:}))) diff --git a/jester.nimble b/jester.nimble index d17be37..a5881fa 100644 --- a/jester.nimble +++ b/jester.nimble @@ -1,6 +1,6 @@ # Package -version = "0.6.0" # Be sure to update jester.jesterVer too! +version = "0.5.1" # Be sure to update jester.jesterVer too! author = "Dominik Picheta" description = "A sinatra-like web framework for Nim." license = "MIT"