TcpServersTransport config

Hi,

I am confused as to how to use the this configuration in a docker compose.

  1. Where is the mytransport declared.
  2. when the dialTimeout expire, does that mean that traefik will close the client connection?
  3. what is the difference between the Dynamic configuration 1 and 2

## Dynamic configuration 1

tcp:
  serversTransports:
    mytransport:
      dialTimeout: 30s

## Dynamic configuration 2

tcp:
  services:
    Service01:
      loadBalancer:
        serversTransport: mytransport

[Traefik Services Documentation - Traefik](https://traefik doc)

serversTransports belongs into dynamic config, which is loaded with providers.file und static config.

  1. is defining the serversTransports
  2. is assigning it to the service

Not sure about dialTimeout.

Should the dialTimeout expiry close the incoming/existing connection when there is no backend or backend has hung?.

Good question, it’s not stated in the doc.

I have tried and not sure if the config actually works. I am 100% sure that if the backend is stopped (traefik and backend started via docker-compose.yaml), traefik v3.1.1 still accept connection and I was able to sent TCP payload without error and it goes into a black hole and the frontend client will only gets terminated exactly 60 seconds.

ERR github.com/traefik/traefik/v3/pkg/server/router/tcp/postgres.go:32 > Error while Peeking first byte error="read tcp 172.19.0.3:5560->192.168.18.151:28403: i/o timeout"