Skip to content

Commit

Permalink
merged heads
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Majkowski committed Sep 15, 2010
2 parents 1097814 + 4e517ea commit 3f5932f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rabbit_amqqueue_process.erl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ next_state(State) ->
State1 = #q{backing_queue = BQ, backing_queue_state = BQS} =
ensure_rate_timer(State),
State2 = ensure_stats_timer(State1),
case BQ:needs_idle_timeout(BQS)of
case BQ:needs_idle_timeout(BQS) of
true -> {ensure_sync_timer(State2), 0};
false -> {stop_sync_timer(State2), hibernate}
end.
Expand Down
23 changes: 22 additions & 1 deletion src/rabbit_networking.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@

-include("rabbit.hrl").
-include_lib("kernel/include/inet.hrl").
-include_lib("ssl/src/ssl_record.hrl").


-define(RABBIT_TCP_OPTS, [
binary,
Expand Down Expand Up @@ -116,7 +118,26 @@ boot_ssl() ->
end}
| SslOptsConfig]
end,
[start_ssl_listener(Host, Port, SslOpts) || {Host, Port} <- SslListeners],
% In R13B04 and R14A (at least), rc4 is incorrectly implemented.
CipherSuites = proplists:get_value(ciphers,
SslOpts,
ssl:cipher_suites()),
FilteredCipherSuites =
[C || C <- CipherSuites,
begin
SuiteCode =
if is_tuple(C) -> ssl_cipher:suite(C);
is_list(C) -> ssl_cipher:openssl_suite(C)
end,
SP = ssl_cipher:security_parameters(
SuiteCode,
#security_parameters{}),
SP#security_parameters.bulk_cipher_algorithm =/= ?RC4
end],
SslOpts1 = [{ciphers, FilteredCipherSuites}
| [{K, V} || {K, V} <- SslOpts, K =/= ciphers]],
[start_ssl_listener(Host, Port, SslOpts1)
|| {Host, Port} <- SslListeners],
ok
end.

Expand Down

0 comments on commit 3f5932f

Please sign in to comment.