Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next/41x/20201016/v1 #5493

Merged
merged 3 commits into from Oct 16, 2020
Merged

Conversation

victorjulien
Copy link
Member

SMB performance backports.

PRScript output (if applicable):
Passed.

#suricata-verify-pr:
#suricata-verify-repo:
#suricata-verify-branch:
#suricata-update-pr:
#suricata-update-repo:
#suricata-update-branch:
#libhtp-pr:
#libhtp-repo:
#libhtp-branch:

In case of lossy connections the SMB state would properly clean up
transactions, including file transactions. However for files the
state was never set to 'truncated', leading to files to stay 'active'.

This would lead these files staying in the SMB's state. In long running
sessions with lots of files this would lead to performance and memory
use issues.

This patch cleans truncates the file that was being transmitted when
a file transaction is being closed.

(cherry picked from commit 65e9a7c)
(cherry picked from commit c8be282)
(cherry picked from commit 8aa3806)
(cherry picked from commit 264eecb)
(cherry picked from commit 25f2efe)
(cherry picked from commit 83c9b30)
@victorjulien victorjulien merged commit 25dd353 into OISF:master-4.1.x Oct 16, 2020
@victorjulien victorjulien deleted the next/41x/20201016/v1 branch November 19, 2020 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant