summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-06-23 15:42:01 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-06-23 15:42:01 +0100
commit05b4e285dab9621fe5c20977294052aa00542b02 (patch)
tree274efc9a07adc82dd542ceedd3bbbde93d2444f2
parentfa89e9e575bd6b2ec5ebe447b1952121a4b79ae7 (diff)
downloadrabbitmq-server-bug25848.tar.gz
application:get_env/3 is not available in R13B03.bug25848
-rw-r--r--src/rabbit.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 6fe54f79..4b7a9a1f 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -832,7 +832,10 @@ warn_if_kernel_config_dubious() ->
"file I/O performance may worsen~n", [AsyncThreads]);
false -> ok
end,
- IDCOpts = application:get_env(kernel, inet_default_connect_options, []),
+ IDCOpts = case application:get_env(kernel, inet_default_connect_options) of
+ undefined -> [];
+ {ok, Val} -> Val
+ end,
case proplists:get_value(nodelay, IDCOpts, false) of
false -> error_logger:warning_msg(
"Nagle's algorithm is enabled for sockets, "