How can i say tomcat to wait until x seconds with out giving gateway timout, while a time consuming request (ex: long poll) in being process. I try below in Application.java but it didnt work,
Well apparently I have a HAProxy lies between ELB and Appserver(tomcat). So when I increase the HAProxy timeout slightly higher than ELB timeout value, it work. Even no need to set the tomcat timeout also.