From 2e87fc716360c3bdbfa2e5122fca37e1bc47ab53 Mon Sep 17 00:00:00 2001
From: Anders Svensson
-A service must configure one
Specifies the degree to which multiple transport connections to the @@ -718,10 +719,10 @@ same peer are accepted by the service.
If type
Specifies a constant value
@@ -775,53 +776,6 @@ marker="#add_transport">add_transport/2.
Has one of the following types.
-{transport_module, atom()}
--
-
-A module implementing a transport process as defined in diameter_transport(3) .
-Defaults to diameter_tcp if unspecified.
-
-
-Multiple transport_module and transport_config
-options are allowed.
-The order of these is significant in this case (and only in this case),
-a transport_module being paired with the first
-transport_config following it in the options list, or the
-default value for trailing modules.
-Transport starts will be attempted with each of the
-modules in order until one establishes a connection within the
-corresponding timeout (see below) or all fail.
-
-
-{transport_config, term()}
-{transport_config, term(), Unsigned32() }
--
-
-A term passed as the third argument to the start/3 function of
-the relevant transport_module in order to start a transport process.
-Defaults to the empty list if unspecified.
-
-
-The 3-tuple form additionally specifies an interval, in milliseconds,
-after which a started transport process should be terminated if it has
-not yet established a connection.
-For example, the following options on a connecting transport
-request a connection with one peer over SCTP or another
-(typically the same) over TCP.
-
-
-{transport_module, diameter_sctp}
-{transport_config, SctpOpts, 5000}
-{transport_module, diameter_tcp}
-{transport_config, TcpOpts}
-
-
-
-To listen on both SCTP and TCP, define one transport for each.
-
-
{applications, [application_alias() ]}
-
@@ -890,7 +844,8 @@ Equivalent to returning
3010 , DIAMETER_UNKNOWN_PEER.
Returning anything but ok or a 2xxx series result
code causes the transport connection to be broken.
-Multiple capabilities_cb options can be specified, in which
+Multiple capabilities_cb
+options can be specified, in which
case the corresponding callbacks are applied until either all return
ok or one does not.
@@ -908,9 +863,9 @@ Applied to Reason=transport|service|application and the
in question, Reason indicating whether the the diameter
application is being stopped, the service in question is being stopped
at diameter:stop_service/1 or
+marker="#stop_service">stop_service/1 or
the transport in question is being removed at diameter:remove_transport/2 ,
+marker="#remove_transport">remove_transport/2,
respectively.
@@ -966,7 +921,8 @@ Equivalent to not having configured the callback.
-Multiple disconnect_cb options can be specified, in which
+Multiple disconnect_cb
+options can be specified, in which
case the corresponding callbacks are applied until one of them returns
a value other than ignore .
All callbacks returning ignore is equivalent to not having
@@ -976,28 +932,6 @@ configured them.
Defaults to a single callback returning dpr .
-TwInit = Unsigned32()
- | {M,F,A}
-
-
--The RFC 3539 watchdog timer. -An integer value is interpreted as the RFC's TwInit in milliseconds, -a jitter of ± 2 seconds being added at each rearming of the -timer to compute the RFC's Tw. -An MFA is expected to return the RFC's Tw directly, with jitter -applied, allowing the jitter calculation to be performed by -the callback.
- --An integer value must be at least 6000 as required by RFC 3539. -Defaults to 30000 if unspecified.
-
For a listening transport, the timer specifies the time after which a
@@ -1019,14 +954,89 @@ previously connected peer will be forgotten: a connection after this time is
regarded as an initial connection rather than a reestablishment,
causing the RFC 3539 state machine to pass to state OKAY rather than
REOPEN.
-Note that these semantics are not goverened by the RFC and
-that a listening transport's
Defaults to 30000 for a connecting transport and 60000 for a listening transport.
+
+A term passed as the third argument to the
+The 3-tuple form additionally specifies an interval, in milliseconds, +after which a started transport process should be terminated if it has +not yet established a connection. +For example, the following options on a connecting transport +request a connection with one peer over SCTP or another +(typically the same) over TCP.
+ +
+{transport_module, diameter_sctp}
+{transport_config, SctpOpts, 5000}
+{transport_module, diameter_tcp}
+{transport_config, TcpOpts}
+
+
++To listen on both SCTP and TCP, define one transport for each.
+
+A module implementing a transport process as defined in
+Multiple
+TwInit = Unsigned32()
+ | {M,F,A}
+
+
++The RFC 3539 watchdog timer. +An integer value is interpreted as the RFC's TwInit in milliseconds, +a jitter of ± 2 seconds being added at each rearming of the +timer to compute the RFC's Tw. +An MFA is expected to return the RFC's Tw directly, with jitter +applied, allowing the jitter calculation to be performed by +the callback.
+ ++An integer value must be at least 6000 as required by RFC 3539. +Defaults to 30000 if unspecified.
-This module implements diameter transport over SCTP using gen_sctp.
+This module implements diameter transport over SCTP using
+An expected CER was not received within
@@ -639,6 +647,14 @@ An incoming CEA contained errors and has been rejected.
Pkt contains the CEA in question.
+An expected CEA was not received within
+The number of milliseconds after which a transport process having an
+established transport connection will be terminated if the expected
+capabilities exchange message (CER or CEA) is not received from the peer.
+For a connecting transport, the timing reconnection attempts is
+governed by
+Defaults to 10000.
+
-A callback invoked prior to requesting shutdown of a transport process
-for a transport connection having watchdog state
-Causes Disconnect-Peer-Request to be sent to the peer, transport
-process shutdown being requested after reception of
+Causes Disconnect-Peer-Request to be sent to the peer, the transport
+process being terminated following reception of
Disconnect-Peer-Answer or timeout.
An
-Transport process shutdown will be requested after this number of -milliseconds if DPA is not received. -Defaults to 1000.
-
@@ -897,6 +922,15 @@ The Disconnect-Cause to send,
+The number of milliseconds after which the transport process is +terminated if DPA has not been received. +Defaults to 1000.
+-Causes transport process shutdown to be requested without +Causes the transport process to be terminated without Disconnect-Peer-Request being sent to the peer.
Removing a transport causes the corresponding transport processes to
-be asked to terminate.
+be terminated.
Whether or not a DPR message is sent to a peer is
controlled by
value of