Skip to content

Commit

Permalink
call ssl:connect/3 with connect_timeout param
Browse files Browse the repository at this point in the history
    Conn_timeout = get_value(connect_timeout, Options, Timeout),
    case do_connect(Host_1, Port_1, Options, State_2, Conn_timeout) of
  • Loading branch information
sdancer committed May 6, 2016
1 parent 216f84c commit 2bf69b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ibrowse_http_client.erl
Expand Up @@ -575,7 +575,7 @@ do_connect(Host, Port, Options, #state{is_ssl = true,
end,
case Conn of
{ok, Sock} ->
ssl:connect(Sock, SSLOptions);
ssl:connect(Sock, SSLOptions, Timeout);
_ ->
error
end;
Expand Down

0 comments on commit 2bf69b3

Please sign in to comment.