Skip to content

Commit

Permalink
the BaseServer of gevent 1.0 has a new method do_handle overried by O…
Browse files Browse the repository at this point in the history
…utboundServer
  • Loading branch information
pubyun committed Dec 10, 2013
1 parent 9de7d06 commit 114177d
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 114177d

Please sign in to comment.