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]

Sreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2010, where he writes about technology, philosophy, society and a bit about physics.
He now runs a conversational AI company – DheeYantra – focusing his efforts to help businesses improve operational efficiency using digital employees powered by AI.