首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python不使用apache mod-wsgi

Python不使用apache mod-wsgi
EN

Stack Overflow用户
提问于 2014-11-18 10:19:52
回答 1查看 71关注 0票数 0

我创建了一个web应用程序,它使用ESL来管理Freeswitch服务器。当使用命令"ESLconnection("localhost","8021",“ClueCon”)时,在我的代码中连接到freeswitch服务器,apache将永久冻结。

代码语言:javascript
复制
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

我的调试日志:

代码语言:javascript
复制
[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`

在这一点上,任何事情都会有帮助。

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-24 11:18:43

我最终使用了事件套接字库,它在Apache中运行得很好。

谢谢

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26991849

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档