Increase Zuul timeouts for backend BOSH or Comet servers

This is how I could make Spring Zuul work with my backend XMPP (over BOSH) server which had a hanging post of 5 mins.
Please find the relevant settings in application.yml here –

 

zuul:
  add-host-header: true
  host:
   connect-timeout-millis: 5000
   socket-timeout-millis: 601000

hystrix:
 command:
   default:
     execution:
       isolation:
         thread:
           timeoutInMilliseconds: 601000
   xmppServer:
     execution:
       timeout:
         enabled: false;

ribbon:
 eureka:
   enabled: false
xmppServer:
 ribbon:
   ReadTimeout: 601000
   ConnectTimeout: 601000

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

43,751 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>