mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: keepalives timeout for UDS http-stream client (#1253)
This commit is contained in:
@@ -965,6 +965,7 @@ func (a *agent) runHot(ctx context.Context, call *call, tok ResourceToken, state
|
||||
udsClient = http.Client{
|
||||
Transport: &http.Transport{
|
||||
// XXX(reed): other settings ?
|
||||
IdleConnTimeout: 1 * time.Second,
|
||||
DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) {
|
||||
var d net.Dialer
|
||||
return d.DialContext(ctx, "unix", filepath.Join(container.UDSAgentPath(), udsFilename))
|
||||
|
||||
Reference in New Issue
Block a user