Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache Proxy Server timeout isn't working as expected |
|
Author |
|
psd_mpl
Joined: 15 Jul 2016 Posts: 4 Location: Bangalore
|
Posted: Fri 15 Jul '16 12:24 Post subject: Apache Proxy Server timeout isn't working as expected |
|
|
Hello,
Apache Proxy Server timeout isn't working as expected.
Apache Server V 2.4
My apache proxy server config is something like this.
apache config :
<Config>
<VirtualHost someurl.com:8003>
ServerName someurl.com:8003
<Location "/">
ProxyPass "https://www.someotherurl.com/" timeout=300 keepalive=On
ProxyPassReverse "https://www.someotherurl.com/"
</Location>
</VirtualHost>
I used a standalone tool to calculate the time elapsed for connection establishment and found out that the connection is timing out in 21secs,Eventhough the specified timeout is 300s
<Code>
import requests
response = requests.get('https://someurl.com:8003/',verify=False)
print response.elapsed
print response.raise_for_status()
print response.status
Why isn't the timeout working properly ? The expected behaviour is connection timeout happening after 300s right ?? Any other config changes are required ?
Any kind of help is appreciated |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 21 Jul '16 23:59 Post subject: |
|
|
Quote: |
import requests
response = requests.get('https://someurl.com:8003/',verify=False)
print response.elapsed
print response.raise_for_status()
print response.status
|
That seems to be a script language?
So it is script<--->apache<--->someotherurl.com ? |
|
Back to top |
|
psd_mpl
Joined: 15 Jul 2016 Posts: 4 Location: Bangalore
|
Posted: Mon 01 Aug '16 7:24 Post subject: |
|
|
Yes its a python script.
This script will give time elapsed to set the connection.
The script tries connecting this url https://someurl.com:8003/ |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 01 Aug '16 15:21 Post subject: |
|
|
My question was is what is right:
a) script<--->apache<--->someotherurl.com
or
b) client<--->apache+script<--->someotherurl.com
or
c) ?? |
|
Back to top |
|
|
|
|
|
|