How to configure response timeout on dispatcher?

Namit_Gupta

15-10-2015

Hi,
 
We have requirement for showing custom error page to the end-users in case CQ5 is not able process the request and render the response within a defined time period (Http errorcode: 504). We tried the configuring the receiveTimeout parameter on dispatcher. PFB configuration snippet for the same:
 
/renders
        {
          /cqpub1
          {
            /hostname "XX.XXX.XX.XX"
            /port "4503"
            /timeout 10
            /receiveTimeout 3
          }
}
 
Our CQ5 config is as follows:
 
CQ Version : 5.4
Dispatcher version : 2.2
 
 
However, we were not able to reproduce the Error code : 504. Has anyone faced a similar issue before?
 
would appreciate any help in this regard?

 

-Namit

Accepted Solutions (0)

Answers (3)

Answers (3)

jorgef65115443

21-08-2020

Hi

 

We are getting a 502 error whenever we try to upload a big asset file (around 1.9GB), after 10 minutes the dispatcher throws a 502 error:

 

Dispatcher log

[pid 92561:tid 140698791651072] Error while forwarding request body to remote server: Connection reset by peer

"POST /content/dam/test-area/video-upload-test/upload-test.createasset.html" 502 none

 

AEM log:

POST /content/dam/test-area/video-upload-test/upload-test.createasset.html HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter isValidRequest: the CSRF token is expired

21.08.2020 20:08:08.167 *INFO* [10.43.1.4 [1598040488165] POST /content/dam/test-area/video-upload-test/upload-test.createasset.html HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter doFilter: the provided CSRF token is invalid

 

Someone can help?

 

Thanks