Skip to content

Commit d9e4de9

Browse files
authored
Update reverseproxy_option.go
styles: fix comment
1 parent 8fe5e8b commit d9e4de9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reverseproxy_option.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func defaultBuildOption() *buildOption {
5151
tlsConfig: nil,
5252
timeout: 0,
5353
disablePathNormalizing: false,
54+
maxConnDuration: 0,
5455
}
5556
}
5657

@@ -123,9 +124,10 @@ func WithDisablePathNormalizing(isDisablePathNormalizing bool) Option {
123124
})
124125
}
125126

126-
// WithTimeout specify the timeout of each request
127+
// WithMaxConnDuration sets maxConnDuration of hostClient, which
128+
// means keep-alive connections are closed after this duration.
127129
func WithMaxConnDuration(d time.Duration) Option {
128130
return newFuncBuildOption(func(o *buildOption) {
129131
o.maxConnDuration = d
130132
})
131-
}
133+
}

0 commit comments

Comments
 (0)