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

Fix oversized test #15

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

raui100
Copy link

@raui100 raui100 commented Dec 7, 2024

Closes #12

ClamAV sometimes doesn't respond with b"INSTREAM size limit exceeded. ERROR\0" but rather stops the connection

Comment on lines +19 to +21
/// When exceeding the configured size limit ClamAV might respond with:
/// 1. `SIZE_LIMIT_EXCEEDED_ERROR_RESPONSE`
/// 2. Stopping the connection via code 32 (BrokenPipe) or 104 (ConnectionReset)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come the connection never drops when I'm testing this locally? Is this behavior (ClamAV dropping the connection) documented somewhere?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've encountered this error on a Ubuntu virtual machine. Never happens locally though (macOs). I haven't checked if this is documented somewhere...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix "oversized" tests
2 participants