diff options
author | Diana Corbacho <diana@rabbitmq.com> | 2017-03-23 16:09:25 +0000 |
---|---|---|
committer | Diana Corbacho <diana@rabbitmq.com> | 2017-03-23 16:09:25 +0000 |
commit | 3d33e7bd2c32782677d87db51f2f1af2ecb2aa34 (patch) | |
tree | 2c1d0be7acc962063d71102a2299d03b3901296e /deps | |
parent | 3c88b4bcef921bba97b639d516699e9574c79c3b (diff) | |
download | rabbitmq-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.erl | 2 |
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}) -> |