Introduce Lingering Timeout
Co-authored-by: Baptiste Mayelle <baptiste.mayelle@traefik.io> Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
parent
e5062cef42
commit
cef842245c
14 changed files with 418 additions and 86 deletions
|
@ -520,6 +520,8 @@ func TestDo_staticConfiguration(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
paerserDuration := ptypes.Duration(111 * time.Second)
|
||||
|
||||
config.EntryPoints = static.EntryPoints{
|
||||
"foobar": {
|
||||
Address: "foo Address",
|
||||
|
@ -529,9 +531,14 @@ func TestDo_staticConfiguration(t *testing.T) {
|
|||
GraceTimeOut: ptypes.Duration(111 * time.Second),
|
||||
},
|
||||
RespondingTimeouts: &static.RespondingTimeouts{
|
||||
ReadTimeout: ptypes.Duration(111 * time.Second),
|
||||
WriteTimeout: ptypes.Duration(111 * time.Second),
|
||||
IdleTimeout: ptypes.Duration(111 * time.Second),
|
||||
HTTP: &static.HTTPRespondingTimeouts{
|
||||
ReadTimeout: &paerserDuration,
|
||||
WriteTimeout: &paerserDuration,
|
||||
IdleTimeout: &paerserDuration,
|
||||
},
|
||||
TCP: &static.TCPRespondingTimeouts{
|
||||
LingeringTimeout: ptypes.Duration(111 * time.Second),
|
||||
},
|
||||
},
|
||||
},
|
||||
ProxyProtocol: &static.ProxyProtocol{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue