Skip to content

Commit 8e34985

Browse files
author
Evgeny Bob
authored
Merge pull request esl#23 from egobrain/bugfix/default-connect-timeout
Fix Issue esl#21
2 parents 4ac71aa + 24295a1 commit 8e34985

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lhttpc_client.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ execute(From, Host, Port, Ssl, Path, Method, Hdrs0, Body, Options) ->
153153
% get the socket connect settings from client or use defaults
154154
% unfold all atoms and allow users to overwrite a single param only
155155
DefOptions = proplists:unfold(application:get_env(lhttpc, connect_options, [])),
156-
DefTimeout = proplists:get_value(connect_timeout, DefOptions, infinity),
156+
DefTimeout = application:get_env(lhttpc, connect_timeout, infinity),
157157
UserOptions = proplists:unfold(proplists:get_value(connect_options, Options, [])),
158158
EffectiveTcpOptions0 = lists:ukeymerge(1,
159159
lists:ukeysort(1, UserOptions),

0 commit comments

Comments
 (0)