energywise_queryResults function call blocks and doesn't return

Document created by cdnadmin on Jan 24, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Rene Seeber on 06-12-2010 11:39:08 AM
Hi,
we are using the energywise api in our project to collect energy data from energywise devices. After some queries the energywise_queryResults functions doesn't return. After setting the energywise log level to trace we got the attached logfile.
In the logfile you will see that the following error is logged multiple times per second. It seems there is an endless loop in this function under certain conditions.
 
enw_queryLoop: unexpected read status value -1, error: 10038(Unknown error)
 
Energywise version: Cisco-EWToolkit-1.2-Alpha2

Thanks

Subject: RE: energywise_queryResults function call blocks and doesn't return
Replied by: Brad Schoening on 06-12-2010 02:11:54 PM
Hi,
we are using the energywise api in our project to collect energy data from energywise devices. After some queries the energywise_queryResults functions doesn't return. After setting the energywise log level to trace we got the attached logfile.
In the logfile you will see that the following error is logged multiple times per second. It seems there is an endless loop in this function under certain conditions.
 
enw_queryLoop: unexpected read status value -1, error: 10038(Unknown error)
 
Energywise version: Cisco-EWToolkit-1.2-Alpha2

Thanks

 
Windows error code 10038 is WSAENOTSOCK (Socket operation on nonsocket).  In this case, probably the socket was closed.  Can you send me (braschoe@cisco.com) your code which is calling the MAPI functions.

Attachments

    Outcomes