increase the timeout value for Helicon Ape and RewriteProxy?

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 2
Joined: 27 May 2017, 14:02

increase the timeout value for Helicon Ape and RewriteProxy?

17 Oct 2017, 22:20

Greetings,

I'm wondering how can I increase the timeout value for Helicon Ape and RewriteProxy?

I'm running Helicon Ape 3.1.0.256 on Windows Server 2012r2, and I'm reverse proxying to a backend application server with this config in my httpd.conf:

Code: Select all
<VirtualHost proxytest2.mydomain.local:80 proxytest2.mydomain.local:443>
  RewriteEngine on
  RewriteProxy ^(.*)$ http://10.10.10.145$1 [A]
  ProxyPassReverse / http://10.10.10.145/
  ProxyPassReverseCookieDomain 10.10.10.145 proxytest2.mydomain.local
</VirtualHost>


This is working pretty well, but for long-running page requests, I'm seeing errors like this in the log file with Loglevel==debug:

Code: Select all
[2017-10-17 17:37:34.975] [proxy:2] (debug) [/upload/file/3277/2017-12-01] ProxyHandler.RespCallBack
[2017-10-17 17:37:34.975] [proxy:2] (debug) [/file/detail/3745/2017-12-31/raw] ProxyHandler.ReadCallBack handler.Done()
[2017-10-17 17:37:34.975] [proxy:2] (debug) [/upload/file/3277/2017-12-01] ProxyHandler.RespCallBack : EndGetResponse 95273ms
[2017-10-17 17:37:34.975] [proxy:2] (error) [/upload/file/3277/2017-12-01] Done with error: Timeout: The operation has timed out
[2017-10-17 17:37:34.975] [proxy:2] (debug) [/upload/file/3277/2017-12-01] ProxyHandler.registerTimeoutThread


So the file upload completes successfully in 10-20 seconds, but then the timeouts always occur around 95,100-95,300ms while the file is being processed. This timeout doesn't occur when I bypass the proxy and go directly to the backend application server.

How can I increase the timeout value for Helicon Ape and RewriteProxy?

Thanks,

Troy

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: increase the timeout value for Helicon Ape and RewritePr

20 Oct 2017, 09:16

Hello.

There is a ProxyTimeout directive: https://www.helicontech.com/ape/doc/mod_proxy.htm#ProxyTimeout
But generally, it is better to understand why the timeout is happening. Ape proxy does not timeouts simply because you are downloading a large file. But incorrectly set file size header, or incorrectly finished request/connection may trigger the timeout error. Most of the browsers simply ignore incorrectly set content-size, but make sure you are not seeing "loading" status in the browser even after your file/page has been downloaded.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 0 guests