aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-02-12 11:18:52 +0100
committerAnders Svensson <[email protected]>2015-03-23 15:27:37 +0100
commit75ee72b4e1d288b1d96194d0e352eb0c73db4a6f (patch)
treefa4a5d0922b833807a50324863555f0b2e06f92d /lib/ssh
parentdeed57ed8da08e3262d61197da2ed00391b94be6 (diff)
downloadotp-75ee72b4e1d288b1d96194d0e352eb0c73db4a6f.tar.gz
otp-75ee72b4e1d288b1d96194d0e352eb0c73db4a6f.tar.bz2
otp-75ee72b4e1d288b1d96194d0e352eb0c73db4a6f.zip
Strip potentially large terms when sending outgoing Diameter messages
Both incoming and outgoing Diameter messages pass through two or three processes, depending on whether they're incoming or outgoing: the transport process and corresponding peer_fsm process and (for incoming) watchdog processes. Since terms other than binary are copied when passing process boundaries, large terms lead to copying that can be problematic, if frequent enough. Since only the bin and transport_data fields of a diameter_packet record are needed by the transport process, discard others when sending outgoing messages. Strictly speaking, the statement that only the aforementioned fields are needed by the transport process depends on the transport process. It's true of those implemented by diameter (in diameter_tcp and diameter_sctp), but an implementation that makes use of other fields is assuming more than the documentation in diameter_transport(3) promises.
Diffstat (limited to 'lib/ssh')
0 files changed, 0 insertions, 0 deletions