Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
Merge bug26419
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon MacMullen committed Oct 20, 2014
2 parents 0d2ec6d + c58bf1c commit 55ba086
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions rabbit_common.app.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
rabbit_misc,
rabbit_msg_store_index,
rabbit_net,
rabbit_networking,
rabbit_nodes,
rabbit_policy_validator,
rabbit_reader,
Expand Down
10 changes: 6 additions & 4 deletions src/amqp_network_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,12 @@ do_connect({Addr, Family},
[Family | ?RABBIT_TCP_OPTS] ++ ExtraOpts,
Timeout) of
{ok, Sock} ->
SslOpts = orddict:merge(fun (_, _A, B) -> B end,
orddict:from_list(GlobalSslOpts),
orddict:from_list(SslOpts0)),
case ssl:connect(Sock, orddict:to_list(SslOpts)) of
SslOpts = rabbit_networking:fix_ssl_options(
orddict:to_list(
orddict:merge(fun (_, _A, B) -> B end,
orddict:from_list(GlobalSslOpts),
orddict:from_list(SslOpts0)))),
case ssl:connect(Sock, SslOpts) of
{ok, SslSock} ->
RabbitSslSock = #ssl_socket{ssl = SslSock, tcp = Sock},
try_handshake(AmqpParams, SIF,
Expand Down

0 comments on commit 55ba086

Please sign in to comment.