ESL problem using WSGI with Django
I created a Django app that uses ESL to manage Freeswitch which works fine when I’m running the app using manage.py BUT when I move this app to our production environment using wsgi.py my connection hangs trying to connect to Freeswitch. I narrowed down that its hung here: 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 __swig_destroy__ = _ESL.delete_ESLconnection __del__ = lambda self : None; I get 'before this' in my log but thats it… I found a few places where people needed to increase threads for Apaches WSGI process but that does not help… This is what I have: WSGIDaemonProcess debug processes=4 threads=16 stack-size=1048576 maximum-requests=10 inactivity-timeout=30 The I get this in my debug logs: [Wed Jun 11 10:44:26 2014] [error] before connection [Wed Jun 11 10:44:26 2014] [error] before this [Wed Jun 11 10:44:51 2014] [info] mod_wsgi (pid=14624): Daemon process inactivity timer expired, stopping process 'debug'. [Wed Jun 11 10:44:51 2014] [info] mod_wsgi (pid=14624): Shutdown requested 'debug'. anything would help at this point… -- Freddy
participants (1)
-
Freddy Andersen