-
-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
- os
WSL2 Debian 12
- code
import prologue
proc hello*(ctx: Context) {.async.} =
resp "<h1>Hello, Prologue!</h1>"
let app = newApp()
app.get("/", hello)
app.run()- nimble file
# Package
version = "0.1.0"
author = "lost22git"
description = "A new awesome nimble package"
license = "MIT"
srcDir = "src"
bin = @["test_prologue"]
# Dependencies
requires "nim >= 2.0.0", "prologue >= 0.6.4"
- build and run
nimble build -d:release
./test_prologue- wrk test
ulimt -n 1000000
wrk -c 10000 -d 30s http://localhost:8080- error message
DEBUG Prologue is serving at http://0.0.0.0:8080
DEBUG Starting 16 threads
DEBUG Listening on port 8080
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels