]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/nfs: fix read reply handling
authorVictor Julien <victor@inliniac.net>
Thu, 25 Jan 2018 13:56:05 +0000 (14:56 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Jan 2018 10:44:01 +0000 (11:44 +0100)
commitd27ed5957faf709b900bf5a4393f4968dc31f961
tree07fedb936b6932a9d91d1d6dffafe6435f5d05a4
parentd75d9d0b45027c8ab9a57be57855c57e03e53bbb
rust/nfs: fix read reply handling

READ replies with large data chunks are processed partially to avoid
queuing too much data. When the final chunk was received however, the
start of the chunk would already tag the transaction as 'done'. The
more aggressive tx freeing that was recently merged would cause this
tx to be freed before the rest of the in-progress chunk was done.

This patch delays the tagging of the tx until the final data has been
received.
rust/src/filetracker.rs
rust/src/nfs/nfs.rs