On 11/03/2015, at 7:50 AM, Dmitriy Chugunov <[email protected]> wrote:
> I use Python 3.2 and Apache with mod_wsgi 4.2.6. I have a query which
> requires too much time to be completed (a few minutes). As a result apache
> returns the error "gateway time-out". Changing the timeout (to 300 seconds)
> in httpd.conf helps, but I would like to avoid changing this parameter. For
> example, I may call some function which will say to Apache that data
> processing is still active and Apache should wait for a while. I supply
> processes=2 threads=1 display-name=%{GROUP} lang=en_US.UTF-8
> locale=en_US.UTF-8 options to the WSGIDaemonProcess directive. So I don't
> supply any timeout option. According to the desription of timeout options
> (inactivity-timeout, deadlock-timeout and shutdown-timeout) it doesn't look
> like they may help.
Any chance you can upgrade to a current version of mod_wsgi?
Additional options were added in a version after you are using which allow
connect and socket timeout to be set separately, overriding the default of
using Apache Timeout directive, for the connection between the Apache child
worker processes and mod_wsgi daemon process.
With these newer options you would be able to better control timeout behaviour
independently for the area which is affecting your use case.
Graham
--
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.