WilkinsonK / xapi-oxidized

XNAT web API client
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Implement Drop for XAPI client #20

Open WilkinsonK opened 4 months ago

WilkinsonK commented 4 months ago

Most objects when they drop out of scope in Rust, they are destroyed. However, we have an issue with XAPI clients where when these objects are dropped, the session ID is not deleted and then a session is left open. This could be dangerous in terms of failing auth calls when trying to create new clients.

The user is currently required to call relinquish manually before dropping out of scope, but it would be good to have Rust do this work for the user instead.