What is the Timeout directive set to in your main Apache configuration?

> On 30 Apr 2023, at 2:18 pm, Aash <aashisharor...@gmail.com> wrote:
> 
> Hello Graham, Thanks for the quick response.
> 
> The API response depends on how many items are sent in a batch so for a long 
> list it can take a long time (It is taking a list of domains and returns a 
> list). I am using the Python Requests library and requests.post to call the 
> API. 
> This error occurs only when there is a long list which might need a minute or 
> two to get response from the API. The error occurs on all the requests that 
> are having longer lists. 
> 
> On Saturday, April 29, 2023 at 9:10:01 PM UTC-7 Graham Dumpleton wrote:
>> How long does it usually take for the remote API to respond? Does it always 
>> respond quickly, or can it take a very long time? Does this error occur on 
>> every request, or only after your web application has been running for a 
>> while?
>> 
>> 
>>> On 30 Apr 2023, at 2:04 pm, Aash <aashish...@gmail.com <>> wrote:
>>> 
>> 
>>> I am trying to host my Flask app on a Linux server. My app connects to an 
>>> API and waits for a response. It is giving me this error.
>>> 
>>> [Sun Apr 30 05:57:30.091150 2023] [wsgi:error] [pid 524703:tid 
>>> 140623501117184] [client someIp:62319] Timeout when reading response 
>>> headers from daemon process 'webApp': /var/www/webApp/webapp.wsgi, referer: 
>>> http://serverIP/
>>> 
>>> My conf file looks like this:
>>> 
>>> <VirtualHost *:80>
>>>     ServerName serverIp
>>>     ServerAdmin em...@mywebsite.com <>
>>> 
>>>     WSGIDaemonProcess webApp processes=4 threads=5 maximum-requests=1000 
>>> request-timeout=600
>>>     WSGIProcessGroup webApp
>>> 
>>>     WSGIScriptAlias / /var/www/webApp/webapp.wsgi process-group=webApp 
>>> application-group=%{GLOBAL}
>>> 
>>>     <Directory /var/www/webApp/webApp/>
>>>         Order allow,deny
>>>         Allow from all
>>>     </Directory>
>>> 
>>>     Alias /static /var/www/webApp/webApp/static
>>>     <Directory /var/www/webApp/webApp/static/>
>>>         Order allow,deny
>>>         Allow from all
>>>     </Directory>
>>> 
>>>     ErrorLog ${APACHE_LOG_DIR}/error.log
>>>     LogLevel warn
>>>     CustomLog ${APACHE_LOG_DIR}/access.log combined
>>> </VirtualHost>
>>> The error on user-side is 
>>> Gateway Timeout
>>> The gateway did not receive a timely response from the upstream server or 
>>> application.
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>>> -- 
>>> 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 modwsgi+u...@googlegroups.com <>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/modwsgi/94c43590-df3c-4a93-8cd9-d2afb965a631n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/modwsgi/94c43590-df3c-4a93-8cd9-d2afb965a631n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> 
> 
> 
> -- 
> 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 modwsgi+unsubscr...@googlegroups.com 
> <mailto:modwsgi+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/e0bccec9-53a2-41af-a9e5-edcb1229ef80n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/e0bccec9-53a2-41af-a9e5-edcb1229ef80n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 modwsgi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/681A2942-932F-4756-A888-E8855F8474AB%40gmail.com.

Reply via email to