소스 검색

Ignore good timeout of UA_Connection_receiveChunksBlocking in receiveServiceResponse

Christian von Arnim 7 년 전
부모
커밋
e5f33bb7b4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/client/ua_client.c

+ 2 - 1
src/client/ua_client.c

@@ -274,7 +274,8 @@ receiveServiceResponse(UA_Client *client, void *response, const UA_DataType *res
         UA_UInt32 timeout = (UA_UInt32)((maxDate - now) / UA_MSEC_TO_DATETIME);
         retval = UA_Connection_receiveChunksBlocking(&client->connection, &rd,
                                                      client_processChunk, timeout);
-        if(retval != UA_STATUSCODE_GOOD) {
+
+        if(retval != UA_STATUSCODE_GOOD && retval != UA_STATUSCODE_GOODNONCRITICALTIMEOUT) {
             if(retval == UA_STATUSCODE_BADCONNECTIONCLOSED)
                 client->state = UA_CLIENTSTATE_DISCONNECTED;
             else