~seanld/silk

87128230d67c5e36220f5026fa8b375a618ad33a — Sean Wilkerson 2 months ago 7a8dd3f
Update test
2 files changed, 5 insertions(+), 3 deletions(-)

M src/silk.nim
M tests/testmain.nim
M src/silk.nim => src/silk.nim +0 -1
@@ 99,7 99,6 @@ proc dispatchClient(s: Server, client: Socket) {.gcsafe.} =
proc dispatchClientPrecheck(s: Server, client: Socket) {.gcsafe.} =
  ## Handles exceptions from entire request/route/response
  ## dispatching process. Necessary for keep-alive.

  try:
    s.dispatchClient(client)
  except:

M tests/testmain.nim => tests/testmain.nim +5 -2
@@ 9,13 9,15 @@ import silk/middleware/compression
import silk/middleware/logging
import silk/middleware/staticserve

var sl = newServerLogger()
var sl = newServerLogger(
  @[newRollingFileLogger("test.log", maxLines = 20000).Logger],
)

var serv = newServer(
  ServerConfig(
    host: "0.0.0.0",
    port: Port(8080),
    workers: 6,
    workers: 12,
    serverLogger: sl,
  ),
  middleware = @[


@@ 27,6 29,7 @@ var serv = newServer(
)

serv.GET("/", handler do: ctx.sendFile Path("./tests/index.html").string)
serv.GET("/", "./tests/index.html")
serv.POST(
  "/",
  handler do: