<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>&nbsp; &nbsp; __swig_setmethods__ = {}</div><div>&nbsp; &nbsp; __setattr__ = lambda self, name, value: _swig_setattr(self, ESLconnection, name, value)</div><div>&nbsp; &nbsp; __swig_getmethods__ = {}</div><div>&nbsp; &nbsp; __getattr__ = lambda self, name: _swig_getattr(self, ESLconnection, name)</div><div>&nbsp; &nbsp; __repr__ = _swig_repr</div><div>&nbsp; &nbsp; def __init__(self, *args):-</div><div>&nbsp; &nbsp; &nbsp; &nbsp; print('before this')</div><div>&nbsp; &nbsp; &nbsp; &nbsp; this = apply(_ESL.new_ESLconnection, args)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; print('after this')</div><div>&nbsp; &nbsp; &nbsp; &nbsp; try: self.this.append(this)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; except: self.this = this</div><div>&nbsp; &nbsp; __swig_destroy__ = _ESL.delete_ESLconnection</div><div>&nbsp; &nbsp; __del__ = lambda self : None;</div><div><br></div><div><br></div><div>I get 'before this' in my log but thats it…&nbsp;</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…&nbsp;</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…&nbsp;</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&nbsp;</div></div></div></body></html>