sethmlarson / virtualbox-python

Complete implementation of VirtualBox's COM API with a Pythonic interface.
https://pypi.org/project/virtualbox
Apache License 2.0
354 stars 75 forks source link

Close partially opened guest session when IGuest.create_session() fails #161

Closed busan15 closed 1 year ago

busan15 commented 2 years ago

Ensures that guest sessions created with IGuest.create_session() are properly closed in case of failure. Closes #101.

busan15 commented 2 years ago

Through further testing it appears that the default value of timeout_ms=0 can sometimes get the process to hang indefinitely while waiting for a failed session to finish terminating. Setting a fixed timeout of 5 seconds should be enough to give the session a chance to terminate properly while not blocking the rest of the program for too long.

sethmlarson commented 1 year ago

I no longer have time to maintain this library, so am closing this issue.