Przeglądaj źródła

!2 iom post unexpected record

chenliangyu 5 miesięcy temu
rodzic
commit
676c93fe24

+ 3 - 0
Framework/spbase/sp_iom.c

@@ -530,7 +530,10 @@ int sp_iom_post(sp_iom_t *iom, int this_svc_id, int epid, int svc_id, int pkt_ty
 	}
 
 	if (rc != 0)
+	{
+		DbgWithLinkForC(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM, "iom post unexpected, epid:%d, rc:%d", epid, rc);
 		rc = Error_Unexpect;
+	}
 
 	return rc;
 }

+ 16 - 0
Module/mod_guiconsole/mod_guiconsole.cpp

@@ -1047,7 +1047,23 @@ void CGUIConsoleSession::Handle_CloseCommonPage(SpReqAnsContext<GUIConsoleServic
 
 void CGUIConsoleSession::Handle_ReservedCall(SpReqAnsContext<GUIConsoleService_ReservedCall_Req, GUIConsoleService_ReservedCall_Ans>::Pointer ctx)
 {
+	LOG_FUNCTION();
+	DbgToBeidou(ctx->link, __FUNCTION__)();
+
+	if(ctx->Req.reqType == "multi_answer")
+	{
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("test answer multi times");
+		ctx->Answer(ErrorCodeEnum::Error_Succeed);
+		ctx->Answer(ErrorCodeEnum::Error_Succeed);
+	}
+	else if(ctx->Req.reqType == "test_timeout")
+	{
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("test timeout");
+		std::this_thread::sleep_for(std::chrono::seconds(10));
+		ctx->Answer(ErrorCodeEnum::Error_Succeed);
+	}
 
+	
 }