Skip to content

Remove drop traits#728

Merged
Enet4 merged 5 commits intoEnet4:masterfrom
pgimeno4d:remove-drop-traits
Mar 1, 2026
Merged

Remove drop traits#728
Enet4 merged 5 commits intoEnet4:masterfrom
pgimeno4d:remove-drop-traits

Conversation

@pgimeno4d
Copy link
Copy Markdown
Contributor

@pgimeno4d pgimeno4d commented Jan 29, 2026

Implements point 1 of #714 (comment). There was a unit test that seemed to rely on packets being sent upon dropping the association object, so I had to fix those too. However I'm not very clear on what's going on exactly, as the functions they use seem to return Err(ConnectionClosed) in some instances, which doesn't seem to affect the test.

If all is OK, I will remove the FIXME's.

@Enet4 Enet4 added A-lib Area: library C-ul Crate: dicom-ul labels Jan 31, 2026
@Enet4 Enet4 self-requested a review January 31, 2026 21:46
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.

However I'm not very clear on what's going on exactly, as the functions they use seem to return Err(ConnectionClosed) in some instances, which doesn't seem to affect the test.

These tests were made to cover the unlikely scenario of an SCU sending more data than it should during the A-ASSOCIATE handshake. This does not seem to be a critical change in behavior, though it would be nice to understand why those results had to be ignored.

@pgimeno4d
Copy link
Copy Markdown
Contributor Author

I'm pushing a change that fixes the other FIXME. On receipt of an A-ASSOCIATE-RQ, the peer is expected to send an A-ASSOCIATE-RP, as the other peer is waiting for it, but none was being sent, which resulted in the latter seeing a connection shutdown instead of the expected A-ASSOCIATE-RP.

I think that makes the patch be in a mergeable state.

@Enet4 Enet4 added the bug This is a bug label Mar 1, 2026
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.

This is now considered acceptable. Despite the significant change in behavior, it is safe to say that this is well preferred over the current state. Thank you again!

@Enet4 Enet4 merged commit dc1f181 into Enet4:master Mar 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lib Area: library bug This is a bug C-ul Crate: dicom-ul

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants