Coder Social home page Coder Social logo

Comments (5)

miguelgrinberg avatar miguelgrinberg commented on May 18, 2024

This is probably due to the gevent monkey patching, see #55. I plan to remove monkey patching, the extension does not need it anyway. If you want to check if this does it, remove the first two lines in __init__.py.

from flask-socketio.

JanBenes avatar JanBenes commented on May 18, 2024

Reading #55 and the linked spyoungtech/grequests#8, it seems this is likely the problem.

Yes, commenting out the first two lines, that is

from gevent import monkey
monkey.patch_all()

removes the problem. I assume this makes Flask-SocketIO dis-functional (haven't tried yet, will tomorrow). I think this is basically the same problem as #55. Also, sorry for the late reply.

from flask-socketio.

miguelgrinberg avatar miguelgrinberg commented on May 18, 2024

@JanBenes: monkey patching is currently not needed by Flask-SocketIO, that is a left-over from an old version. Applications that depend on monkey-patching can always monkey-patch from their side. I'll go ahead and push an update.

from flask-socketio.

miguelgrinberg avatar miguelgrinberg commented on May 18, 2024

Version 0.4.1 released. This version removes the monkey patching.

from flask-socketio.

JanBenes avatar JanBenes commented on May 18, 2024

This works. Thanks!

from flask-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.