mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Limit connection pool size on UDS: we should only need one per container (#1252)
Hopefully this reduces FD usage even further.
This commit is contained in:
committed by
Reed Allman
parent
a256d96f1e
commit
4a862212a2
@@ -964,6 +964,8 @@ func (a *agent) runHot(ctx context.Context, call *call, tok ResourceToken, state
|
|||||||
|
|
||||||
udsClient = http.Client{
|
udsClient = http.Client{
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
|
MaxIdleConns: 1,
|
||||||
|
MaxIdleConnsPerHost: 1,
|
||||||
// XXX(reed): other settings ?
|
// XXX(reed): other settings ?
|
||||||
IdleConnTimeout: 1 * time.Second,
|
IdleConnTimeout: 1 * time.Second,
|
||||||
DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) {
|
DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user