Coder Social home page Coder Social logo

Comments (4)

andrewgodwin avatar andrewgodwin commented on August 30, 2024 1

The ASGI spec says "block means that the call can take as long as it likes", so this is valid behaviour. What needs fixing here is the channels Worker; if you could file a bug against the channels project we can fix it over there so an interrupt correctly yanks it out of any receive call.

from channels_redis.

AlexejStukov avatar AlexejStukov commented on August 30, 2024

@andrewgodwin: Done.
@andrewgodwin & @proofit404: Maybe I will try my luck at fixing this in channels tomorrow. Thanks for your work, guys!

from channels_redis.

AlexejStukov avatar AlexejStukov commented on August 30, 2024

@andrewgodwin maybe the ASGI spec should be reworded, because in the same paragraph there is the sentence: "If block is True, then it will not return until after a built-in timeout or a message arrives;"
For me that means that it should eventually return after a non infinite timeout.

from channels_redis.

andrewgodwin avatar andrewgodwin commented on August 30, 2024

Yes, I will clarify that paragraph so it's clear it is allowed to block forever.

from channels_redis.

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.