Git Product home page Git Product logo

Comments (9)

dswarbrick avatar dswarbrick commented on August 20, 2024

You should probably ask this on the uWSGI lists/forums, as it's more a case of "how do I use WebSockets under uWSGI?" I believe there has been some work done in that area, but since WebSockets are essentially incompatible with the WSGI 1.0 spec, it's unlikely to work.

from gevent-socketio.

sontek avatar sontek commented on August 20, 2024

You also need gevent to work, and uWSGI has horrible gevent support ( http://projects.unbit.it/uwsgi/wiki/Gevent ), so I would recommend using gunicorn instead.

from gevent-socketio.

marconi avatar marconi commented on August 20, 2024

Hey guys, thanks will try it but I wonder if Gunicorn works with Apache? I'm pretty much stuck with it, do you think it will work the same as with Nginx if I use proxy pass in Apache to Gunicorn or do you recon there might be some issues?

from gevent-socketio.

dswarbrick avatar dswarbrick commented on August 20, 2024

Gunicorn can serve content completely independently of Apache, or you can use Apache's mod_proxy to hand requests to a backend Gunicorn server (but WebSockets won't work through mod_proxy).

from gevent-socketio.

marconi avatar marconi commented on August 20, 2024

@dswarbrick yayks, just as when I was thinking all request comes in apache and just forward the socketio related to gunicorn. :/ Could you enlighten me why gunicorn won't work under mod_proxy?

from gevent-socketio.

sontek avatar sontek commented on August 20, 2024

@marconi What I use is gunicorn with a gevent worker and nginx as a proxy with buffering off. Its very fast/scalable and works just the way you would want it to.

from gevent-socketio.

marconi avatar marconi commented on August 20, 2024

@sontek the thing is, our sysad is quite attached to Apache. I'll give it another shot, might be able to convince him this time. :)

from gevent-socketio.

sontek avatar sontek commented on August 20, 2024

Yeah, you can use apache. I know someone who does HAProxy + Apache but I haven't done it.

from gevent-socketio.

dswarbrick avatar dswarbrick commented on August 20, 2024

@sontek Can you elaborate on what you mean by using nginx as a proxy? Is that proxying WebSockets?

from gevent-socketio.

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.