summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorDiana Corbacho <diana@rabbitmq.com>2017-03-23 16:09:25 +0000
committerDiana Corbacho <diana@rabbitmq.com>2017-03-23 16:09:25 +0000
commit3d33e7bd2c32782677d87db51f2f1af2ecb2aa34 (patch)
tree2c1d0be7acc962063d71102a2299d03b3901296e /deps
parent3c88b4bcef921bba97b639d516699e9574c79c3b (diff)
downloadrabbitmq-server-git-3d33e7bd2c32782677d87db51f2f1af2ecb2aa34.tar.gz
Default to 0 for stats calculation
* Sometimes, the socket will report an error that will make the stats crash with a badarith. If socket stats are not available, 0 is a sensible default.
Diffstat (limited to 'deps')
-rw-r--r--deps/rabbit_common/src/rabbit_reader.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/rabbit_common/src/rabbit_reader.erl b/deps/rabbit_common/src/rabbit_reader.erl
index 6f6300162b..561b325717 100644
--- a/deps/rabbit_common/src/rabbit_reader.erl
+++ b/deps/rabbit_common/src/rabbit_reader.erl
@@ -1447,7 +1447,7 @@ ic(Item, #connection{}) -> throw({bad_argument, Item}).
socket_info(Get, Select, #v1{sock = Sock}) ->
case Get(Sock) of
{ok, T} -> Select(T);
- {error, _} -> ''
+ {error, _} -> 0
end.
ssl_info(F, #v1{sock = Sock}) ->