<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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.<div><br></div><div>I narrowed down that its hung here:</div><div><br></div><div><div>class ESLconnection:</div><div> __swig_setmethods__ = {}</div><div> __setattr__ = lambda self, name, value: _swig_setattr(self, ESLconnection, name, value)</div><div> __swig_getmethods__ = {}</div><div> __getattr__ = lambda self, name: _swig_getattr(self, ESLconnection, name)</div><div> __repr__ = _swig_repr</div><div> def __init__(self, *args):-</div><div> print('before this')</div><div> this = apply(_ESL.new_ESLconnection, args)</div><div> print('after this')</div><div> try: self.this.append(this)</div><div> except: self.this = this</div><div> __swig_destroy__ = _ESL.delete_ESLconnection</div><div> __del__ = lambda self : None;</div><div><br></div><div><br></div><div>I get 'before this' in my log but thats it… </div><div><br></div><div>I found a few places where people needed to increase threads for Apaches WSGI process but that does not help… </div><div><br></div><div>This is what I have:</div><div>WSGIDaemonProcess debug processes=4 threads=16 stack-size=1048576 maximum-requests=10 inactivity-timeout=30</div><div><br></div><div>The I get this in my debug logs:</div><div><div>[Wed Jun 11 10:44:26 2014] [error] before connection</div><div>[Wed Jun 11 10:44:26 2014] [error] before this</div><div>[Wed Jun 11 10:44:51 2014] [info] mod_wsgi (pid=14624): Daemon process inactivity timer expired, stopping process 'debug'.</div><div>[Wed Jun 11 10:44:51 2014] [info] mod_wsgi (pid=14624): Shutdown requested 'debug'.</div></div><div><br></div><div>anything would help at this point… </div><div><br></div><div><div style="orphans: 2; text-align: -webkit-auto; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">-- Freddy </div></div></div></body></html>