diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2021-07-21 08:42:15 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2021-07-21 08:42:15 +0000 |
commit | 1800d22913db305609418c9a888ca77f8a34cbb1 (patch) | |
tree | 234affab31e711e59b48e8063e926b33bdc482db /sys | |
parent | b782d2ea367632122c08833faa4c8a9e580459b6 (diff) |
Remove DTLS processed_rcds queue.
When DTLS handshake records are received from the next epoch, we will
potentially queue them on the unprocessed_rcds queue - this is usually
a Finished message that has been received without the ChangeCipherSuite
(CCS) message (which may have been dropped or reordered).
After the epoch increments (due to the CCS being received), the current
code processes all records on the unprocessed queue and immediate queues
them on the processed queue, which dtls1_get_record() then pulls from.
This form of processing only adds more complexity and another queue.
Instead, once the epoch increments, pull a single record from the
unprocessed queue and process it, allowing the contents to be consumed
by the caller. We repeat this process until the unprocessed queue is
empty, at which point we go back to consuming messages from the wire.
ok inoguchi@ tb@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions