Python ESL不能与apache modwsgi一起使用

2024-04-24 05:20:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我创建了一个使用ESL管理Freeswitch服务器的web应用程序。 在我的代码中使用命令“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`

在这一点上,任何事情都会有所帮助。你知道吗

谢谢


Tags: lambdanameselflocalhostvaluethispidnov