aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/doc/src/part_notes.xml
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2014-01-23 09:20:46 +0100
committerAnders Svensson <[email protected]>2014-01-24 16:03:05 +0100
commited6395a69435354c9d3d5accbd3adbfc45d5becf (patch)
tree08ae3b8ca16f93218482f69cc96861f455f63968 /lib/test_server/doc/src/part_notes.xml
parent25237481ccccd3ddfa74582dc267632ad618ba30 (diff)
downloadotp-ed6395a69435354c9d3d5accbd3adbfc45d5becf.tar.gz
otp-ed6395a69435354c9d3d5accbd3adbfc45d5becf.tar.bz2
otp-ed6395a69435354c9d3d5accbd3adbfc45d5becf.zip
Change interface for communicating outbound stream id to diameter_sctp
The module uses the transport_data field of record diameter_packet to communicate the stream on which the an incoming message is received and on which an outgoing message should be sent, the previous interface being that both are communicated as a tuple of the form {stream, Id}. However, since diameter retains the value of an incoming request's transport_data unless the corresponding answer message specifies otherwise, the behaviour in this case is to send an answer on the outbound stream with the same identifier as the that of the inbound stream on which the request was received. If the inbound stream id is greater than or equal to the number of outbound streams then this is guaranteed to fail, causing the transport process in question to terminate. There is no relationship between inbound and outbound stream identifiers so diameter_sctp's imposition of one is simply wrong. Outbound stream ids are now communicated with a different tuple: {outstream, Id}, interpreted modulo the number of outbound streams. Thus, retention of an inbound request's transport_data has no effect on the selection of an outbound stream. The change in interface is not strictly backwards compatible because of the new atom for the outbound stream. However, as there is currently no documented way of obtaining the available number of outbound streams for a peer connection, there is no way for a client to have known the range of ids from which it could reliably have chosen with the previous interface, so any setting of the outbound stream has probably been unintentional. Not explicitly specifying an outbound stream now results in a round-robin selection.
Diffstat (limited to 'lib/test_server/doc/src/part_notes.xml')
0 files changed, 0 insertions, 0 deletions