Do you need to stream your response or can you just buffer it and return a list of bytes as the iterator? On Dec 3, 2015 10: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.
