We want to be able to close idle streams in order to detect that client disconnected. TCP can be closed without sending FIN message, and the TCP detection time is very long, we need to configure shorter idle timeout so we can detect such disconnection fast. all of our streams send keepalive message every 15 sec to keep the stream alive
we tried to do it like so :
apiVersion: traefik.io/v1alpha1
kind: ServersTransport
metadata:
name: <ServersTransportName>
namespace: <namespace>
spec:
forwardingTimeouts:
idleConnTimeout: 60s
responseHeaderTimeout: 0s
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: <IngressRouteName>
namespace: <namespace>
spec:
entryPoints:
- websecure
routes:
- match: HostRegexp(`<sub-domain>.<domain>.com`) && PathPrefix(`/api.somePath`)
kind: Rule
services:
- name: <name>
port: 8082
scheme: h2c
serversTransport: <ServersTransportName>
tls:
options:
name: option-tls
store:
name: store-tls
but still the connection is closed after 60 even though we send keep alive every 15 seconds ?
am i missing something ?