ACPI Sleep and connection persistence
Alexis Boisserand <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <1304528933.21134.46.camel@alexis-ubuntu> |
Hi everyone, We are developing a CIM client application on Windows 7 x86 with the OpenPegasus client library. The CIMOM we use is OpenPegasus 2.9.1. Our client keeps connected locally (we use the connectLocal() method) to the CIMOM and issues some CIM operations. Our problem is the following: while the application is running if the machine enters the ACPI sleep mode, when it comes back from the sleep mode and tries to issue CIM operations again, the operations fail and throw an exception with the message "Connection closed by CIM server.", the type of this exception is neither NotConnectedException nor ConnectionTimeoutException. We first tried to make a client that tries to reconnect silently when this exception is thrown, but when we try to reconnect, our application crashes. It seems that the client is in an inconsistent state, neither connected nor disconnected. To my knowledge entering and coming back from the sleep mode is supposed to be transparent for the applications, and any application should come back from the sleep mode in the same state that it entered it. My questions are the following: - Is this a known limitation of OpenPegasus? - If not, has anyone any idea of what could be the cause of this problem? - Would not there be some workaround to prevent this from happening? Thanks for your answers, -- Alexis Boisserand [email protected] +55 51 3220 3293 ======================================================= Tools & Technologies – T&T The Software Development Expert Rua Riachuelo, 1098 Conj. 1204 Centro - Porto Alegre - CEP 90010-272 Fone: +55 51 3220 3220 http://www.tet.com.br/ =======================================================