aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_sup.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-03-02 12:57:19 +0100
committerAnders Svensson <[email protected]>2017-03-07 18:35:09 +0100
commita4da06a56f778b7ac44c33a4fea38d1f60cac28d (patch)
tree1d2364305f62c0ddd7f1c188d359f879fff19605 /lib/diameter/src/base/diameter_sup.erl
parenta5bc8a5911613ec9ddfef9984ee59a24110c8b2b (diff)
downloadotp-a4da06a56f778b7ac44c33a4fea38d1f60cac28d.tar.gz
otp-a4da06a56f778b7ac44c33a4fea38d1f60cac28d.tar.bz2
otp-a4da06a56f778b7ac44c33a4fea38d1f60cac28d.zip
Don't use request table for answer routing
The table has existed forever, to route incoming answers to a waiting request process: each outgoing request writes to the table, and each incoming answer reads. This has been seen to suffer from lock contention at high load however, so this commit moves the routing into the diameter_peer_fsm processes that are diameter's conduit to transport processes. The request table is still used for failover detection, but entries are only written when a watchdog state transitions leaves or enters state OKAY.
Diffstat (limited to 'lib/diameter/src/base/diameter_sup.erl')
-rw-r--r--lib/diameter/src/base/diameter_sup.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/src/base/diameter_sup.erl b/lib/diameter/src/base/diameter_sup.erl
index 482289cb9a..01c51f0856 100644
--- a/lib/diameter/src/base/diameter_sup.erl
+++ b/lib/diameter/src/base/diameter_sup.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2016. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2017. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@
-define(TABLES, [{diameter_sequence, [set]},
{diameter_service, [set, {keypos, 3}]},
- {diameter_request, [bag]},
+ {diameter_request, [set]},
{diameter_config, [bag, {keypos, 2}]}]).
%% start_link/0