diff options
author | Anders Svensson <[email protected]> | 2014-05-21 01:07:00 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2014-05-22 08:37:50 +0200 |
commit | 6642bfc89b9a9863ea1f4864d28b96b075beedd8 (patch) | |
tree | 5a91f55687908ec8252a44c46705ab73c7ea2ad4 /lib/diameter/src/base/diameter_peer_fsm.erl | |
parent | 90cd10632ff2bcc6c541ac544728f18097290301 (diff) | |
download | otp-6642bfc89b9a9863ea1f4864d28b96b075beedd8.tar.gz otp-6642bfc89b9a9863ea1f4864d28b96b075beedd8.tar.bz2 otp-6642bfc89b9a9863ea1f4864d28b96b075beedd8.zip |
Count decode errors in incoming requests
Errors were only counted in incoming answers. Counters are keyed on
tuples of the same form:
{{ApplicationId, CommandCode, Rbit}, recv, error}
Diffstat (limited to 'lib/diameter/src/base/diameter_peer_fsm.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_peer_fsm.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/diameter/src/base/diameter_peer_fsm.erl b/lib/diameter/src/base/diameter_peer_fsm.erl index ae890d67d7..4978c1e049 100644 --- a/lib/diameter/src/base/diameter_peer_fsm.erl +++ b/lib/diameter/src/base/diameter_peer_fsm.erl @@ -650,6 +650,8 @@ handle_request(Type, #diameter_packet{} = Pkt, #state{dictionary = D} = S) -> %% send_answer/3 send_answer(Type, ReqPkt, #state{transport = TPid, dictionary = Dict} = S) -> + diameter_traffic:incr_R(recv, ReqPkt, TPid), + #diameter_packet{header = H, transport_data = TD} = ReqPkt, |