openhpi2 / openhpi_bug_test

0 stars 0 forks source link

SSL_get_error may be reporting an old error #1868

Closed openhpi2 closed 8 years ago

openhpi2 commented 9 years ago

SSL_get_error() is getting called in oh_ssl.c and it could be reporting an old error as the queue is not cleared with ERR_clear_error. Also use ERR_get_error to get more information on the error

Reported by: dr_mohan

openhpi2 commented 9 years ago

The following syslog shows "SSL_read reported error1" comes out from SSL_get_error, but it could belong to an old call. The documentation refers to clearing the error queue before making a call.

Feb 10 22:50:52 cz1 openhpid: openhpid: server.cpp:367: #012#012#012#012 OpenHPID calling the saHpiSessionOpen #012 #012#012#012#012 Feb 10 22:50:52 cz1 openhpid: openhpid: server.cpp:367: #012#012#012#012 OpenHPID calling the saHpiSessionOpen #012 #012#012#012#012 Feb 10 12:24:20 cz1 openhpid: openhpid: server.cpp:367: #012#012#012#012 OpenHPID calling the saHpiSessionOpen #012 #012#012#012#012 Feb 10 12:24:20 cz1 openhpid: oa_soap: oa_soap_hotswap.c:398: oa_soap_set_autoinsert_timeout supplied is 5000000000 Feb 10 12:24:20 cz1 openhpid: oa_soap: oa_soap_hotswap.c:399: Default auto insert timeout is IMMEDIATE and read only Feb 10 12:46:01 cz1 openhpid: oa_soap: oa_soap_sensor.c:1073: Get blade's thermal info failed Feb 10 12:46:15 cz1 openhpid: oa_soap: oa_soap_re_discover.c:164: Re-discovery started Feb 10 12:46:17 cz1 openhpid: ssl: oh_ssl.c:762: SSL_read reported error1 Feb 10 12:46:17 cz1 openhpid: oa_soap: oa_soap_callsupport.c:761: xmlParseChunk() failed with error 4 Feb 10 12:46:17 cz1 openhpid: ssl: oh_ssl.c:600: SSL_shutdown() failed Feb 10 12:46:17 cz1 openhpid: oa_soap: oa_soap_callsupport.c:1098: failed to communicate with OA during soap_call() Feb 10 12:46:17 cz1 openhpid: oa_soap: oa_soap_sensor.c:1073: Get blade's thermal info failed Feb 10 12:46:17 cz1 openhpid: oa_soap: oa_soap_utils.c:961: OA SOAP Handler is locked. Feb 10 12:46:17 cz1 openhpid: oa_soap: oa_soap_utils.c:962: No operation is allowed in this state Feb 10 12:46:17 cz1 openhpid: oa_soap: oa_soap_utils.c:963: Please try after some time Feb 10 12:46:17 cz1 openhpid: oa_soap: oa_soap_sensor.c:166: OA SOAP handler is locked

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Fixed with checkin #7624

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Fixed with checkin #7624

Original comment by: dr_mohan