Skip to content
Open
Show file tree
Hide file tree
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
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/plivo/core/freeswitch/outboundsocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down