comet and the timeout
===

Hi am trying since a long time make a chat application using comet in tomcat. The problem is that i have deployed the application in cloud where there is a cap on 30 sec for a open connection.
So every time the server takes more than 30 sec to respond (like when there is no chat message left to push ) client receives a 504 exception.

So does this mean the comet technique does not work in the scenarios where we have a time cap ? 



