fix(http): connector and authn/authz http `keep-alive` default 30s , max 1000

This commit is contained in:
JimMoen 2022-02-21 09:54:52 +08:00
parent 000020617c
commit ff68e2a20f
4 changed files with 4 additions and 4 deletions

View File

@ -223,7 +223,7 @@ default_headers_no_content_type() ->
#{ <<"accept">> => <<"application/json">> #{ <<"accept">> => <<"application/json">>
, <<"cache-control">> => <<"no-cache">> , <<"cache-control">> => <<"no-cache">>
, <<"connection">> => <<"keep-alive">> , <<"connection">> => <<"keep-alive">>
, <<"keep-alive">> => <<"timeout=5">> , <<"keep-alive">> => <<"timeout=30, max=1000">>
}. }.
transform_header_name(Headers) -> transform_header_name(Headers) ->

View File

@ -112,7 +112,7 @@ default_headers_no_content_type() ->
#{ <<"accept">> => <<"application/json">> #{ <<"accept">> => <<"application/json">>
, <<"cache-control">> => <<"no-cache">> , <<"cache-control">> => <<"no-cache">>
, <<"connection">> => <<"keep-alive">> , <<"connection">> => <<"keep-alive">>
, <<"keep-alive">> => <<"timeout=5">> , <<"keep-alive">> => <<"timeout=30, max=1000">>
}. }.
transform_header_name(Headers) -> transform_header_name(Headers) ->

View File

@ -195,7 +195,7 @@ default_headers_no_content_type() ->
#{ <<"accept">> => <<"application/json">> #{ <<"accept">> => <<"application/json">>
, <<"cache-control">> => <<"no-cache">> , <<"cache-control">> => <<"no-cache">>
, <<"connection">> => <<"keep-alive">> , <<"connection">> => <<"keep-alive">>
, <<"keep-alive">> => <<"timeout=5">> , <<"keep-alive">> => <<"timeout=30, max=1000">>
}. }.
transform_header_name(Headers) -> transform_header_name(Headers) ->

View File

@ -159,7 +159,7 @@ on_start(InstId, #{base_url := #{scheme := Scheme,
, {connect_timeout, ConnectTimeout} , {connect_timeout, ConnectTimeout}
, {retry, MaxRetries} , {retry, MaxRetries}
, {retry_timeout, RetryInterval} , {retry_timeout, RetryInterval}
, {keepalive, 5000} , {keepalive, 30000}
, {pool_type, PoolType} , {pool_type, PoolType}
, {pool_size, PoolSize} , {pool_size, PoolSize}
, {transport, Transport} , {transport, Transport}