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

Implement HTTP connection reuse in freshclam #1432

Open
joernheissler opened this issue Jan 5, 2025 · 0 comments
Open

Implement HTTP connection reuse in freshclam #1432

joernheissler opened this issue Jan 5, 2025 · 0 comments

Comments

@joernheissler
Copy link

Hello,

I'm running a private database mirror. The client use freshclam to fetch updates over a slow link.

Currently, freshclam initiates a new TLS connection for each file downloaded. Could/should this changed to use a single connection? This would save several roundtrips and lots of bandwidth.

It could be of even more benefit for the official mirrors, given that they serve so many more clients.

freshclam uses CURL for downloading files, and CURL already supports connection reuse. A new CURL handle is created for each file though, so this feature isn't used.

Perhaps a single CURL handle could be created in perform_database_update and passed down to the functions that actually use it, or a statically allocated handle could be added to libfreshclam_internal.c?

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

No branches or pull requests

2 participants