title: Extend connection in cloudfoundry for more than 30 seconds
body: <p>I am trying to develop a chat application in java and have deployed a sample application that uses RabbitMQ and Comet.
  I have been able to send and receive messages from the bounded RabbitMQ service.</p>
  
  <p>The problem occurs when I try to pool the queue for messages when there are no pending messages to deliver.</p>
  
  <p>Instead of waiting for a new message and keep the connection open, I am getting 504 error code.</p>
  
  <p>This I believe is due to the Cloud Foundry condition that the request has to be responded within 30 sec.</p>
  
  <p>As I want to keep the connection open until I have a message to deliver to the client, is there any way I can overcome this. </p>