increase the timeout value for Helicon Ape and RewriteProxy?
2 posts
• Page 1 of 1
increase the timeout value for Helicon Ape and RewriteProxy?
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:
This is working pretty well, but for long-running page requests, I'm seeing errors like this in the log file with Loglevel==debug:
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
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
Re: increase the timeout value for Helicon Ape and RewritePr
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.
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.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests