-
Notifications
You must be signed in to change notification settings - Fork 88
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
Very slow association with invalid adresses - Need to use custom timeout during connecting #483
Comments
Hi @qarmin can you see if #530 fixed your issue? You should be able to now do debug!("Establishing association with '{}'...", &addr);
let mut scu_opt = ClientAssociationOptions::new()
.with_abstract_syntax(abstract_syntax)
.called_ae_title(aetitle)
.read_timeout(20)
.max_pdu_length(max_pdu_length); By setting this, when you call |
I tested some code and this does not fix the issue. In case of a network error or faulty IP address is provided the We need to add another "connection timeout" variable and use |
I tested version 0.8.0 and still I have exactly same problem. Code to test
Output
|
Well, I was wrong and this is fixed now, because I found that connection_timeout should be used instead read_timeout
|
Hey @qarmin. I was going to say that. I think without that being set it might be platform dependent what that timeout is. For me, I get about 500ms and a "Host Unreachable" Error result. That being said, I realized we don't have any tests for the connection timeout, so I'm working on that now |
Because this can be implemented, I am changing the discussion in the issue to make it more visible
Discussed in #480
Originally posted by qarmin March 19, 2024
I have this code
and after trying to connect to invalid address, after 2 minutes I have info, that dicom failed to establish connection.
Can this be speed up?
Can I use any workaround?
The text was updated successfully, but these errors were encountered: