Websockets disconnect after 30 seconds


#1

Hello.
I have tried to use tyk websockets. My websocket request being disconnected after 30 seconds. But when I connect to the backend service directly (avoid tyk) the connection lasts as long as I want.
Can tyk disconnect old websockets connections? Have someone face this problem?
Thanks.


#2

Are you running Tyk behind a load balancer?


#3

Yes. Tyk is behind load balancer.


#4

Could it be the Load balancer terminating the connection?


#5

Yes. Kubernetes load balancer has 30 seconds limit for all http connections.
Thank you.