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

timeout does only a read timeout, not a connect timeout #24

Open
kpmueller opened this issue Dec 17, 2021 · 1 comment
Open

timeout does only a read timeout, not a connect timeout #24

kpmueller opened this issue Dec 17, 2021 · 1 comment

Comments

@kpmueller
Copy link

The timeout configured in the client only uses s.setSoTimeout(timeout); -- this timeout only affects read

This means that the timeout does not change for connecting to the clamav host, as you would expect, which instead relies on the default timeouts. They can be very long.

I've created a patch to address this, which I believe works, but you would want to verify.

@kpmueller
Copy link
Author

PR created here: #25

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

No branches or pull requests

1 participant