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 –

 
[bash]
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

[/bash]

Kj
Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

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