dedsec-terminal opened a new pull request, #4183:
URL: https://github.com/apache/iggy/pull/4183

   ## Which issue does this PR address?
   
   Closes #4163
   
   ## Rationale
   
   The Rust Client trait exposes disconnect() and shutdown(), but the Python 
IggyClient only exposed connect(), so there was no way to close the connection 
for reconnect or release the client without dropping it.
   
   ## What changed?
   
   Added async disconnect() and shutdown() to the Python binding, following the 
exact pattern already used by connect(). disconnect() closes the current 
connection while allowing a later connect(), though the previous login is 
cleared so login_user() has to run again. shutdown() releases the client and 
rejects further calls with Client shutdown. Both are idempotent, and both are 
no-ops over HTTP where there is no connection to manage. Stub entries and 
connectivity tests are included.
   
   ## Local Execution
   
   - Passed: ruff check and ruff format --check on the touched test file
   - Not run: cargo fmt / clippy / stub_gen and the live-server pytest suite 
(no Rust toolchain or running server on this machine); the .pyi entries were 
written by hand to match the new methods
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to