Skip to content

MAIN: Add read/write timeout options for ClientAssociation#530

Merged
Enet4 merged 2 commits intoEnet4:masterfrom
naterichman:client-timeout
Jul 5, 2024
Merged

MAIN: Add read/write timeout options for ClientAssociation#530
Enet4 merged 2 commits intoEnet4:masterfrom
naterichman:client-timeout

Conversation

@naterichman
Copy link
Copy Markdown
Contributor

Small MR to add read/write timeouts for the TCPStream on a ClientAssociation object.

I am using the client extensively and find that some pacs servers (presumably when under load) are taking 1000+s to respond to a c-move.

Additionally when I get around to it I will add over my c-move implementation.

As a side-note I've used it as a learning point for async rust and have made processes as async as possible (i.e just spawn_blocking as little as I can) and that has been interesting, but it would definitely be great to make the Client and Server async compatible themselves.

@Enet4 Enet4 added enhancement C-ul Crate: dicom-ul labels Jul 4, 2024
Copy link
Copy Markdown
Owner

@Enet4 Enet4 left a comment

Choose a reason for hiding this comment

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

Looks mostly OK, I believe this is as far as we can go before moving onto async. I suggested some minor changes below.

Please don't forget to rebase to solve the existing git conflicts.

Copy link
Copy Markdown
Owner

@Enet4 Enet4 left a comment

Choose a reason for hiding this comment

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

Thank you @naterichman!

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

Labels

C-ul Crate: dicom-ul enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants