我创建了一个web应用程序,它使用ESL来管理Freeswitch服务器。当使用命令"ESLconnection("localhost","8021",“ClueCon”)时,在我的代码中连接到freeswitch服务器,apache将永久冻结。
class ESLconnection:
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ESLconnection, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ESLconnection, name)
__repr__ = _swig_repr
def __init__(self, *args):
print('before this')
this = apply(_ESL.new_ESLconnection, args)
print('after this')
try:
self.this.append(this)
except:
self.this = this我的调试日志:
[Tue Nov 18 10:53:18.103572 2014] [error] before connection
[Tue Nov 18 10:53:18.103572 2014] [error] before this
[Tue Nov 18 10:53:18.103572 2014] [:info] [pid 13285] mod_wsgi (pid=13285): Daemon
process deadlock timer expired, stopping process 'localhost'.
[Tue Nov 18 10:53:18.103781 2014] [:info] [pid 13285] mod_wsgi (pid=13285):
Shutdown requested 'localhost'.`enter code here`在这一点上,任何事情都会有帮助。
谢谢
发布于 2014-11-24 11:18:43
我最终使用了事件套接字库,它在Apache中运行得很好。
谢谢
https://stackoverflow.com/questions/26991849
复制相似问题