apache 2.4.10 vezes no upload do arquivo. RequestReadTimeout não aumenta o tempo

1

Versões: Apache / 2.4.10 (Raspbian) PHP / 5.6.30-0 + deb8u1 OpenSSL / 1.0.1t

Do console do linux, testando o tempo limite do ssl:

time openssl s_client -connect x.y.z:443
...
  Start Time: 1504204638
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---
(delay  of about 20 secs)
​----​
read:errno=0

real    0m20.903s
user    0m0.050s
sys     0m0.000s

Quando o teste acima foi feito, o log de erros mostra (na configuração do nível de depuração)

[2017-08-31 12:00:46] [ssl:info] [client 192.168.1.1:38094] AH01964: Connection to child 0 established (server x.y.z:443)
[2017-08-31 12:00:46] [ssl:debug] ssl_engine_kernel.c(1936): [client 192.168.1.1:38094] AH02645: Server name not provided via TLS extension (using default/first virtual host)
[2017-08-31 12:00:46] [ssl:debug] ssl_engine_kernel.c(1841): [client 192.168.1.1:38094] AH02041: Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)

(observe o atraso de 21 segundos (aparentemente o openssl tem um atraso de 20 segundos no código))

[2017-08-31 12:01:07] [reqtimeout:info] [client 192.168.1.1:38094] AH01382: Request header read timeout
[2017-08-31 12:01:07] [ssl:info] (70007)The timeout specified has expired: [client 192.168.1.1:38094] AH01991: SSL input filter read failed.
[2017-08-31 12:01:07] [ssl:debug] ssl_engine_io.c(1004): [client 192.168.1.1:38094] AH02001: Connection closed to child 0 with standard shutdown (server x.y.z:443)

O upload de imagens, mesmo arquivos pequenos, atinge o tempo limite após cerca de 15 segundos, independentemente do seguinte (ver duas configurações tentadas)

# the following is an expt, setting very low to see if this statement has any effect at all. We get time out after 15 secs, for any setting.
#RequestReadTimeout header=5 body=9

RequestReadTimeout header=60-100,MinRate=50 body=80,MinRate=50

Para os tempos limite reais durante o tempo limite no apache 2.4 error.log  (Com qualquer uma das configurações acima, o tempo limite é praticamente o mesmo 15 segundos; apenas um log é mostrado abaixo)

[2017-08-31 12:06:52] [authz_core:debug] mod_authz_core.c(809): [client 192.168.1.1:52406] AH01626: authorization result of <RequireAny>: granted, referer ...

(Nota autorização foi concedida. Atraso entre acima / abaixo cerca de 15s!)

[2017-08-31 12:07:07] [reqtimeout:info] [client 192.168.1.1:52406] AH01382: Request header read timeout
[2017-08-31 12:07:07] [ssl:info] (70007)The timeout specified has expired: [client 192.168.1.1:52406] AH01991: SSL input filter read failed.
[2017-08-31 12:07:07] [ssl:debug] ssl_engine_io.c(1004): [client 192.168.1.1:52406] AH02001: Connection closed to child 2 with standardshutdown (server x.y.z:443)
    
por CqC 31.08.2017 / 22:16

0 respostas