You don’t happen to be using PostgreSQL in the same web application process are you?
The PostgreSQL client library had a bug in it with its SSL connection handling which would cause deadlocks at Python code level where something not related to PostgreSQL was making a SSL connection. I can’t remember whether the PostgreSQL client library was fixed or not. Some details in: http://www.postgresql.org/message-id/[email protected] <http://www.postgresql.org/message-id/[email protected]> Graham > On 4 Dec 2015, at 3:35 AM, Jesus Cea <[email protected]> wrote: > > I have a mod_wsgi script that (tries to) create internally a TLS > connection to fetch data in order to fulfill the original HTTPS request. > > Everything works when the connection my wsgi script creates is a plain > TCP/IP, but when I try to create a TLS connection my process get stuck > in this Python line: > > """ > context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) > """ > > The process just hangs there. > > This fails when I am doing the connection in the body iterator. It works > fine when called from the "application()" routine. > > In the logs I see this: > > """ > [Thu Dec 03 17:30:18.651576 2015] [wsgi:error] [pid 29627:tid > 139770575349504] [client XX.XX.XX.XXX:48380] Timeout when reading > response headers from daemon process 'buffy': /home/buffy/wsgi.py > """ > > -- > Jesús Cea Avión _/_/ _/_/_/ _/_/_/ > [email protected] - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ > Twitter: @jcea _/_/ _/_/ _/_/_/_/_/ > jabber / xmpp:[email protected] _/_/ _/_/ _/_/ _/_/ _/_/ > "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ > "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ > "El amor es poner tu felicidad en la felicidad de otro" - Leibniz > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
