|
|
@@ -67,35 +67,42 @@
|
|
|
description => #{en => <<"Connection Pool">>,
|
|
|
zh => <<"连接池大小"/utf8>>}
|
|
|
},
|
|
|
- cacertfile => #{order => 5,
|
|
|
+ enable_pipelining => #{order => 5,
|
|
|
+ type => boolean,
|
|
|
+ default => true,
|
|
|
+ title => #{en => <<"Enable Pipelining">>, zh => <<"Enable Pipelining"/utf8>>},
|
|
|
+ description => #{en => <<"Whether to enable HTTP Pipelining">>,
|
|
|
+ zh => <<"是否开启 HTTP Pipelining"/utf8>>}
|
|
|
+ },
|
|
|
+ cacertfile => #{order => 6,
|
|
|
type => file,
|
|
|
default => <<"">>,
|
|
|
title => #{en => <<"CA Certificate File">>,
|
|
|
zh => <<"CA 证书文件"/utf8>>},
|
|
|
description => #{en => <<"CA Certificate file">>,
|
|
|
zh => <<"CA 证书文件"/utf8>>}},
|
|
|
- keyfile => #{order => 6,
|
|
|
+ keyfile => #{order => 7,
|
|
|
type => file,
|
|
|
default => <<"">>,
|
|
|
title =>#{en => <<"SSL Key">>,
|
|
|
zh => <<"SSL Key"/utf8>>},
|
|
|
description => #{en => <<"Your ssl keyfile">>,
|
|
|
zh => <<"SSL 私钥"/utf8>>}},
|
|
|
- certfile => #{order => 7,
|
|
|
+ certfile => #{order => 8,
|
|
|
type => file,
|
|
|
default => <<"">>,
|
|
|
title => #{en => <<"SSL Cert">>,
|
|
|
zh => <<"SSL Cert"/utf8>>},
|
|
|
description => #{en => <<"Your ssl certfile">>,
|
|
|
zh => <<"SSL 证书"/utf8>>}},
|
|
|
- verify => #{order => 8,
|
|
|
+ verify => #{order => 9,
|
|
|
type => boolean,
|
|
|
default => false,
|
|
|
title => #{en => <<"Verify Server Certfile">>,
|
|
|
zh => <<"校验服务器证书"/utf8>>},
|
|
|
description => #{en => <<"Whether to verify the server certificate. By default, the client will not verify the server's certificate. If verification is required, please set it to true.">>,
|
|
|
zh => <<"是否校验服务器证书。 默认客户端不会去校验服务器的证书,如果需要校验,请设置成true。"/utf8>>}},
|
|
|
- server_name_indication => #{order => 9,
|
|
|
+ server_name_indication => #{order => 10,
|
|
|
type => string,
|
|
|
title => #{en => <<"Server Name Indication">>,
|
|
|
zh => <<"服务器名称指示"/utf8>>},
|
|
|
@@ -254,7 +261,7 @@ on_action_data_to_webserver(Selected, _Envs =
|
|
|
NBody = format_msg(BodyTokens, Selected),
|
|
|
NPath = emqx_rule_utils:proc_tmpl(PathTokens, Selected),
|
|
|
Req = create_req(Method, NPath, Headers, NBody),
|
|
|
- case ehttpc:request(ehttpc_pool:pick_worker(Pool, ClientID), Method, Req, RequestTimeout) of
|
|
|
+ case ehttpc:request({Pool, ClientID}, Method, Req, RequestTimeout) of
|
|
|
{ok, StatusCode, _} when StatusCode >= 200 andalso StatusCode < 300 ->
|
|
|
emqx_rule_metrics:inc_actions_success(Id);
|
|
|
{ok, StatusCode, _, _} when StatusCode >= 200 andalso StatusCode < 300 ->
|