-
Notifications
You must be signed in to change notification settings - Fork 645
Ability to cancel the store request in C-Get #1810
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
Comments
DicomServer and DicomService are indeed lacking in cooperative cancellation support. I think we should do better here. |
I took a quick stab at it. It's far from finished though, and this will need to be discussed. See the PR for more details! |
You can setup your own cancellation token if you need one. For example there is the property
|
But as I understand, you have some long-lasting compression method, that only can be canceled by a cancellationToken?
|
I implemented the Dicom-Get operation exactly as demonstrated in your SDK. Additionally, my application utilizes the NativeTranscoderManager. When a store request sends a large DICOM file that requires compression and takes about 2 or 3 minutes, my server does not receive the connection request until the compression is complete if the remote host suddenly closes the connection.
I recommend supporting a cancellation token to be sent with the SendRequestAsync method of the DicomService. This would allow the operation to be terminated when the remote host closes the connection, thereby saving server resources.
The text was updated successfully, but these errors were encountered: