You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matthias Leopold <ma...@leopold.priv.at> on 2016/07/27 12:01:09 UTC

[users@httpd] ProxyPass ttl not working?

Hi,

i'm reverse proxying from an apache 2.2 to an apache 2.4 server (both RHEL).
proxy VirtualHost is SSL (SSLProxyEngine On, SSLProxyVerify none)

on the proxy i'm seeing errors like

proxy: Error reading from remote server returned by xxx
(70014)End of file found: proxy: error reading status line from remote 
server xxx

which results in 502 errors for the client.

i can eliminate this with setting "disablereuse=on" in the ProxyPass 
line, but i think this shouldn't be necessary

i tried to set a ttl on the ProxyPass directive that is below the 
KeepAliveTimeout of the target server as mentioned in the docs

this simply doesn't work. above error reappears. i tried adding smax=0, 
no avail
what could i have missed?

my setting:

- reverse proxy (apache 2.2, prefork mpm)
TimeOut 180
KeepAliveTimeout 45

ProxyPass https://xxx ttl=20

- target server (apache 2.4, worker mpm)
TimeOut 60 (default)
KeepAliveTimeout 30

thx
matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ProxyPass ttl not working?

Posted by Matthias Leopold <ma...@leopold.priv.at>.

Am 2016-07-27 um 14:01 schrieb Matthias Leopold:
> Hi,
>
> i'm reverse proxying from an apache 2.2 to an apache 2.4 server (both
> RHEL).
> proxy VirtualHost is SSL (SSLProxyEngine On, SSLProxyVerify none)
>
> on the proxy i'm seeing errors like
>
> proxy: Error reading from remote server returned by xxx
> (70014)End of file found: proxy: error reading status line from remote
> server xxx
>
> which results in 502 errors for the client.
>
> i can eliminate this with setting "disablereuse=on" in the ProxyPass
> line, but i think this shouldn't be necessary
>
> i tried to set a ttl on the ProxyPass directive that is below the
> KeepAliveTimeout of the target server as mentioned in the docs
>
> this simply doesn't work. above error reappears. i tried adding smax=0,
> no avail
> what could i have missed?
>
> my setting:
>
> - reverse proxy (apache 2.2, prefork mpm)
> TimeOut 180
> KeepAliveTimeout 45
>
> ProxyPass https://xxx ttl=20
>
> - target server (apache 2.4, worker mpm)
> TimeOut 60 (default)
> KeepAliveTimeout 30
>

just for the records:

with an apache 2.4 reverse proxy the exact same config (ProxyPass 
https://xxx ttl=20) does work as expected

matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ProxyPass ttl not working?

Posted by Matthias Leopold <ma...@leopold.priv.at>.

Am 2016-07-27 um 14:13 schrieb Nick Kew:
> On Wed, 27 Jul 2016 14:01:09 +0200
> Matthias Leopold <ma...@leopold.priv.at> wrote:
>
> Check what headers are actually being exchanged between the
> proxy and backend (and from the Client).  The keepalive
> timeouts are only relevant if all parties agree to them.
>
>> ProxyPass https://xxx ttl=20
>
> Https?  Do you get the same with plain HTTP?
>
> Also, mod_proxy gets very verbose if you turn loglevel
> up to Debug.  Worth a try if it's not one of those problems
> you solved one minute after posting!
>

i wish i solved this one minute after posting...

in the meantime i learned i can "solve" this with "SetEnv 
proxy-initial-not-pooled 1", but this seems as brute-force as 
"disablereuse=on" to me

i also get the error when backend is plain HTTP

when i turn on debug i get

mod_proxy_http.c(1499): [client x.x.x.x] proxy: NOT Closing connection 
to client although reading from backend server foo failed.

in between

(70014)End of file found: proxy: error reading status line from remote 
server

and

proxy: Error reading from remote server returned by xxx

does this give any clue?

i didn't look into packets yet as this server is rather busy

thanks
matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ProxyPass ttl not working?

Posted by Nick Kew <ni...@apache.org>.
On Wed, 27 Jul 2016 14:01:09 +0200
Matthias Leopold <ma...@leopold.priv.at> wrote:

Check what headers are actually being exchanged between the
proxy and backend (and from the Client).  The keepalive
timeouts are only relevant if all parties agree to them.

> ProxyPass https://xxx ttl=20

Https?  Do you get the same with plain HTTP?

Also, mod_proxy gets very verbose if you turn loglevel
up to Debug.  Worth a try if it's not one of those problems
you solved one minute after posting!

-- 
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org