You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@community.apache.org by Eudald ValcĂ rcel Lacasa <eu...@gmail.com> on 2020/10/09 23:13:48 UTC

[Proxy_http] Timeout after 30 seconds

Dear community,
I've a website that allows a user to upload its content.
If the file takes more than 30 seconds to upload (due to it being too
big or having a bad connection) the connection terminates and the
upload freezes.

Server version: Apache/2.4.29 (Ubuntu)

These are the apache2 conf file parameters related:

    SSLProxyEngine On
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off

    <Location />
        ProxyPreserveHost On
        ProxyPass https://127.0.0.1:17730/
        ProxyPassReverse https://127.0.0.1:17730/
    </Location>

Other relevant parameters:
apache2.conf: Timeout 300
container
php.ini:
max_execution_time = 300
max_input_time = 60
memory_limit = 128M
post_max_size = 100M
upload_max_file_size = 100M

It connects to a docker container with the apache2-php webservice.
The log shows the following messages:
[Fri Oct 09 19:23:32.610980 2020] [proxy_http:error] [pid 892:tid
140244003305216] (70008)Partial results are valid but processing is
incomplete: [client XXX.XXX.XXX.XXX:52078] AH02609: read request body
failed to 127.0.0.1:17730 (127.0.0.1) from XXX.XXX.XXX.XXX (),
referer: https://cli.domain.net/l/import?database=40
[Fri Oct 09 19:23:32.611022 2020] [proxy_http:error] [pid 892:tid
140244003305216] [client XXX.XXX.XXX.XXX:52078] AH01097: pass request
body failed to 127.0.0.1:17730 (127.0.0.1) from XXX.XXX.XXX.XXX (),
referer: https://cli.domain.net/l/import?database=40
[Fri Oct 09 19:23:32.611032 2020] [proxy:debug] [pid 892:tid
140244003305216] proxy_util.c(2192): AH00943: HTTPS: has released
connection for (127.0.0.1)
[Fri Oct 09 19:23:32.611060 2020] [socache_shmcb:debug] [pid 892:tid
140244003305216] mod_socache_shmcb.c(557): AH00837:
socache_shmcb_remove (0x7a -> subcache 26)
[Fri Oct 09 19:23:32.611069 2020] [socache_shmcb:debug] [pid 892:tid
140244003305216] mod_socache_shmcb.c(571): AH00839: leaving
socache_shmcb_remove successfully
[Fri Oct 09 19:23:32.611333 2020] [ssl:debug] [pid 892:tid
140244003305216] ssl_engine_io.c(1106): [client XXX.XXX.XXX.XXX:52078]
AH02001: Connection closed to child 71 with standard shutdown (server
cli.domain.net:443)

First of all, I've been trying the following solutions:
- Disable reqtimeout mod
- Adding connectiontimeout=7200 timeout=7200 to ProxyPass
- Defining RequestReadTimeout header=7200 body=7200 (with reqtimeout
mod enabled)
- SetEnv proxy-sendchunked

None of them did resolve the issue nor didn't change the log message.

I'm out of ideas and I'd really appreciate any help.

Thanks!
Eudald

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org