Questions tagged [eventlet]

a concurrent networking library for Python that provides performance and scalability of non-blocking IO while writing simple blocking code (no callbacks) using green threads.

It uses epoll or kqueue or libevent for highly scalable non-blocking I/O. Coroutines ensure that the developer uses a blocking style of programming that is similar to threading, but provide the benefits of non-blocking I/O. The event dispatch is implicit, which means you can easily use Eventlet from the Python interpreter, or as a small part of a larger application. It's easy to get started using Eventlet, and easy to convert existing applications to use it. Start off by looking at examples, common design patterns, and the list of the basic API primitives.

License: MIT.

http://eventlet.net/

311 questions
0
votes
1 answer

Django; Bugsnag doesn't work with Gunicorn with Eventlet

Testing BugSnag with our Django based REST-API server. I have an API endpoint that crashes on purpose just to test it, someone in a certain serializer my views use. In my own settings.py I have: BUGSNAG = { 'api_key': '[redacted]', …
JasonGenX
  • 4,952
  • 27
  • 106
  • 198
0
votes
1 answer

problem with socketio emit event - python 2.7 client to nodejs server

I have looked at a lot of similar problems on message boards and read the related documentation and from what I can tell it seems like I am doing everything right. node server code io.on('connection', function(socket){ logger.log('info',…
0
votes
0 answers

How to gevent.sleep in current gevent.pool

Lets say I have two gevent pool groups gevent_pool_1 = Pool(2) gevent_pool_2 = Pool(2) I want to gevent.sleep(10) in gevent_pool_1 which will not block the gevent_pool_2
David Mnatsakanyan
  • 455
  • 1
  • 4
  • 15
0
votes
1 answer

eventlet with django and python socket io

whenever i try connecting client to ther server, it connects succesully and when client fires an event 'chat' with some data, it gets response back as: "received your msg" + data sent "welcome" Whenever client fires 'chat' event server(sio) also…
Nimish Bansal
  • 1,719
  • 4
  • 20
  • 37
0
votes
0 answers

What do these numbers mean in my Flask application's log output?

I have a Flask application that runs with Flask-SocketIO. I recently installed eventlet in order to improve performance and utilise the web socket protocol. My HTTP logs started having 2 additional parameters at the end (after the status…
turnip
  • 2,246
  • 5
  • 30
  • 58
0
votes
1 answer

Flask-SocketIO with eventlet: Web and Websockets Thread

My setup is flask-socketio with a flask-restful webserver. Eventlet is installed, so in production mode, eventlet webserver is used. I understand flask-socketio and eventlet webserver themselves are event-loop based. Does flask-socketio and eventlet…
911
  • 908
  • 8
  • 16
0
votes
0 answers

What is the required eventlet version for flask-socketio?

I'm trying to get eventlet working with flask-socketio in python 2.7. Here is the bare bones code I am using: import eventlet from flask import Flask from flask_socketio import SocketIO import threading import time def server(): app =…
Dave
  • 1,326
  • 2
  • 11
  • 22
0
votes
1 answer

How can I use Websocket transport and async_mode=threading in flask-socketio at the same time?

I'm setting up a socket.io server, and we have several background threads that call long, blocking methods which poll data. We also want to emit data to the socket.io client from these threads. We were running into issues where these threads would…
C. Dill
  • 1
  • 1
  • 2
0
votes
2 answers

resources on eventlet

hi i am actually working on a project which needs realtime updates so we are using eventlet for that so can u guys refer to resources to read about eventlet given the fact that i have no previous experience of using eventlet or any realtime library…
tushar
  • 307
  • 1
  • 7
  • 17
0
votes
1 answer

How to pull from a different queue inside Celery task

I have a task queue, queue A, and a resource queue, queue B. At program start, there are a finite number of resources put in queue B. Tasks may execute if they're able to pull a resource from queue B, and once they're done executing they must put…
monstermac77
  • 256
  • 3
  • 24
0
votes
0 answers

Flask-SocketIO, eventlet, multiprocessing.Process not compatible

My code (Python 3.5 on Raspbian 9 - Stretch) is divided up into a number of separate processes, which are run from main.py. A simplified example of my code is below, which I believe is plain vanilla use of Flask, socketIO, eventlet with…
FarNorth
  • 289
  • 1
  • 7
  • 16
0
votes
2 answers

RabbitMQ/Pika blocking consumer with evenlet

I am working on a larger application that requires eventlet, and now requires rabbitMQ as well. It appears that eventlet is causing the pika consumer thread to block execution of additional workers. I know Pika is not considered thread-safe, so I…
user2242044
  • 8,803
  • 25
  • 97
  • 164
0
votes
1 answer

Can we patch requests module by eventlet.patcher.import_patched?

Trying to use requests module in eventlet python2 hit below error. >>> import eventlet >>> eventlet.patcher.import_patched('requests') Traceback (most recent call last): File "", line 1, in File…
Kramer Li
  • 2,284
  • 5
  • 27
  • 55
0
votes
1 answer

using c extension library with gevent

I use celery for doing snmp requests with easysnmp library which have a C interface. The problem is lots of time is being wasted on I/O. I know that I should use eventlet or gevent in this kind of situations, but I don't know how to handle patching…
Mehdi Pourfar
  • 488
  • 4
  • 13
0
votes
1 answer

does python eventlet monkeypatch start up multi threading with different thread id (but not multi coroutines)?

I try to use monkey patch these days. I found that if a code is monkey patched, it will produce different thread.ident. does it means monkey patch start up multiple threading, rather than multiple coroutines? If it start up multiple threading, thus…
cosz3
  • 359
  • 4
  • 15