Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gevent.coros is deprecated #108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/plivo/core/freeswitch/eventsocket.py
Original file line number Diff line number Diff line change
@@ -10,7 +10,10 @@
import gevent
import gevent.event
import gevent.socket as socket
from gevent.coros import RLock
try:
from gevent.lock import RLock
except:
from gevent.coros import RLock
import gevent.pool
from gevent import GreenletExit

4 changes: 2 additions & 2 deletions src/plivo/core/freeswitch/outboundsocket.py
Original file line number Diff line number Diff line change
@@ -111,10 +111,10 @@ def __init__(self, address, handle_class, filter="ALL"):
self._filter = filter
#Define the Class that will handle process when receiving message
self._requestClass = handle_class
StreamServer.__init__(self, address, self.do_handle,
StreamServer.__init__(self, address, self.handler,
backlog=BACKLOG, spawn=gevent.spawn_raw)

def do_handle(self, socket, address):
def handler(self, socket, address):
try:
self.handle_request(socket, address)
finally: