Giter Site home page Giter Site logo

Comments (8)

synodriver avatar synodriver commented on June 1, 2024 1

I have a fork of hypercorn with this extension, but it will only work under http1.1, since h2 doesn't provide this feature. As for facing the buffer, I personally think there's no problem because mine has been running for a long time.

from asgiref.

Archmonger avatar Archmonger commented on June 1, 2024

cc: @pgjones @Kludex @tomchristie

from asgiref.

Kludex avatar Kludex commented on June 1, 2024

The ones who know more about it are @synodriver and @abersheeran.

from asgiref.

abersheeran avatar abersheeran commented on June 1, 2024

The reason for facing buffers is because of the design of asyncio. It seems possible to solve this problem if we modify the zerocopysend standard so that it can only be sent at the end of the message.

from asgiref.

Archmonger avatar Archmonger commented on June 1, 2024

@abersheeran

In terms of what this would like in practice, do you have a proposed interface?

Trying to work backwards and see how/if to push through this issue.

Lack of zero copy send is pretty painful for Whitenoise and ReactPy.

from asgiref.

Archmonger avatar Archmonger commented on June 1, 2024

@synodriver

Would an interface change allow h2 support without waiting on library support?

from asgiref.

synodriver avatar synodriver commented on June 1, 2024

@synodriver

Would an interface change allow h2 support without waiting on library support?

I don't think it's possible. hypercorn relys on those sans-io projects to parse raw data. You can send data directly, but that will break h2 library's internal state machine.

from asgiref.

Archmonger avatar Archmonger commented on June 1, 2024

My immediate family impression it's debatable whether http2 and http3 file transfers need to be funneled through external libraries.

It seems possible to simplify things by adding a few asgiref helper functions for that.

from asgiref.

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.