-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hello world Mummy web server crashes on devel #23724
Comments
Works for me. Does it start to work with |
Yes, no problem with |
Should be fixed by #23758 If not, please reopen. |
nope, same
output
Nim Version
|
Is this problem reproducible on Linux? |
unfortunately yes,
|
No, that's great news! Makes it much easier to fix. |
Cannot reproduce on Linux either. Even compiling with |
I don't use Insomnia though, I simply use my browser and navigate to |
Hey, I truly appreciate your time and attention, here's the modified code (I've made it single threaded by import std/os
import mummy, mummy/routers
proc index(req: Request) =
sleep 300
req.respond 200, emptyHttpHeaders(), "Hello, World!"
proc initRouter: Router =
result.get "/", index
let server = newServer(initRouter(), workerThreads = 1)
when isMainModule:
echo "Serving on http://localhost:6001/"
serve server, Port 6001, "localhost" Result1. Sometimes without
|
no problem, just hit |
That's what I do, but as I said, cannot reproduce. Probably I should use |
strange, does my Nim's git hash matches yours? can anyone else give it a try? |
You need: commit 8096fa4
|
I thought |
I'm really sorry for that, |
Description
the following code is a
hello world
web server using mummy which crashes when you hit send multiple times in Insomnia ( an app similar to Postman, for testing API's )Nim Version
Nim Compiler Version 2.1.1 [Windows: amd64]
Compiled at 2024-06-10
Copyright (c) 2006-2024 by Andreas Rumpf
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
no idea
Additional Information
tested in Windows 10.
The text was updated successfully, but these errors were encountered: