Skip to content

Commit

Permalink
Revert "re-add reuse_session option"
Browse files Browse the repository at this point in the history
This reverts commit 5166973.
  • Loading branch information
benoitc committed Feb 25, 2025
1 parent f5a19c4 commit 0e499e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hackney_ssl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ connect(Host, Port, Opts) ->

connect(Host, Port, Opts0, Timeout) when is_list(Host), is_integer(Port),
(Timeout =:= 5000 orelse is_integer(Timeout)) ->
SSLOpts = hackney_util:merge_opts(
[{reuse_session, true}], proplists:get_value(ssl_options, Opts0)
),
SSLOpts = proplists:get_value(ssl_options, Opts0),
BaseOpts = [binary, {active, false}, {packet, raw}],
Opts1 = hackney_util:merge_opts(BaseOpts, proplists:delete(ssl_options, Opts0)),
case hackney_happy:connect(Host, Port, Opts1, Timeout) of
Expand Down

0 comments on commit 0e499e2

Please # to comment.