GithubHelp home page GithubHelp logo

Jester crashes when async sleeping about jester HOT 5 CLOSED

ajusa avatar ajusa commented on May 29, 2024 1
Jester crashes when async sleeping

from jester.

Comments (5)

ajusa avatar ajusa commented on May 29, 2024

Forgot to add this:
command to compile is nim r -d:ssl main.nim. I also tried patching Jester to force asynchttpserver, which doesn't seem to have this problem as far as I can tell.

from jester.

dom96 avatar dom96 commented on May 29, 2024

I also tried patching Jester to force asynchttpserver, which doesn't seem to have this problem as far as I can tell.

For future reference you can just use -d:useStdlib to make Jester use asynchttpserver

from jester.

dom96 avatar dom96 commented on May 29, 2024

Found the bug, statusContent doesn't return a future in its except branch: https://github.com/dom96/jester/blob/master/jester.nim#L124.

When reproducing I can see a few of these errors as well:

ERROR Could not send response: Protocol not available
ERROR Could not send response: Protocol not available

So the send is failing for some reason too.

from jester.

dom96 avatar dom96 commented on May 29, 2024

Looks like this bug was introduced in #236 (not blaming anyone, just posting for reference, also important to make sure I don't break what that PR fixed).

from jester.

dom96 avatar dom96 commented on May 29, 2024

So this was actually two bugs. Thank you so much for reporting them! It was fun hunting them down :)

Btw prologue will have the same issue, I checked httpx's code and it has the same bug. So the fact that prologue silently worked seems like a bug in its implementation (it is likely swallowing errors).

from jester.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.