bung87 / scorper

scorper is a micro and elegant web framework written in Nim
Apache License 2.0
81 stars 5 forks source link

server crash under multiple browser refreshes (F5) #47

Closed nimelias closed 7 months ago

nimelias commented 9 months ago
/chronos/asyncfutures2.nim(586) cb
Error: unhandled exception: Asynchronous task [processClient() at streamserver.nim:811] finished with an exception "AsyncStreamWriteEOFError"!
Message: Stream finished or remote side dropped connection

The same happens when in a route handler there is something like await sleepAsync(5000) and refresh page is requested.

bung87 commented 7 months ago

anything I need to know for reproducing this ?

I never had this issue, and I tried today.

nimelias commented 7 months ago

i cannot setup a static dir server. feel free to close the issue. btw trying the error i get is: scorper/src/scorper/http/streamserver.nim(105, 15) Error: undeclared field: 'path' for type urlly.Url:ObjectType

bung87 commented 7 months ago

it happens when you run with nim c -r instead of nimble c -r, they may use different packages.