fix(http): connector and authn/authz http `keep-alive` default 30s , max 1000
This commit is contained in:
parent
000020617c
commit
ff68e2a20f
|
@ -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) ->
|
||||||
|
|
|
@ -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) ->
|
||||||
|
|
|
@ -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) ->
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue