浏览代码

call ssl:connect/3 with connect_timeout param

Conn_timeout = get_value(connect_timeout, Options, Timeout),
    case do_connect(Host_1, Port_1, Options, State_2, Conn_timeout) of
pull/145/head
shakugan 9 年前
父节点
当前提交
2bf69b3955
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/ibrowse_http_client.erl

+ 1
- 1
src/ibrowse_http_client.erl 查看文件

@ -575,7 +575,7 @@ do_connect(Host, Port, Options, #state{is_ssl = true,
end, end,
case Conn of case Conn of
{ok, Sock} -> {ok, Sock} ->
ssl:connect(Sock, SSLOptions);
ssl:connect(Sock, SSLOptions, Timeout);
_ -> _ ->
error error
end; end;

正在加载...
取消
保存