logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache Proxy Server timeout isn't working as expected
Author
psd_mpl



Joined: 15 Jul 2016
Posts: 4
Location: Bangalore

PostPosted: Fri 15 Jul '16 12:24    Post subject: Apache Proxy Server timeout isn't working as expected Reply with quote

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 Smile
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Thu 21 Jul '16 23:59    Post subject: Reply with quote

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

PostPosted: Mon 01 Aug '16 7:24    Post subject: Reply with quote

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: 7355
Location: Germany, Next to Hamburg

PostPosted: Mon 01 Aug '16 15:21    Post subject: Reply with quote

My question was is what is right:

a) script<--->apache<--->someotherurl.com
or
b) client<--->apache+script<--->someotherurl.com
or
c) ??
Back to top


Reply to topic   Topic: Apache Proxy Server timeout isn't working as expected View previous topic :: View next topic
Post new topic   Forum Index -> Apache