perf(http2):
According to the modification of http2intf, adjust the fabric  discovery
@@ -612,7 +612,7 @@ __BOATSTATIC BOAT_RESULT BoatHlfabricDiscoveryExec(BoatHlfabricTx *tx_ptr,
// BoatLog(BOAT_LOG_CRITICAL, "hostname : %s ", tx_ptr->wallet_ptr->http2Context_ptr->hostName);
#endif
tx_ptr->wallet_ptr->http2Context_ptr->type = tx_ptr->var.type;
- tx_ptr->wallet_ptr->http2Context_ptr->parseDataPtr = &tx_ptr->endorserResponse;
+ tx_ptr->wallet_ptr->http2Context_ptr->parseDataPtr = &tx_ptr->evaluateRes;
// BoatLog_hexasciidump(BOAT_LOG_NORMAL, "http2SubmitRequest :",
// tx_ptr->wallet_ptr->http2Context_ptr->sendBuf.field_ptr,
// tx_ptr->wallet_ptr->http2Context_ptr->sendBuf.field_len);
@@ -664,12 +664,17 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr
result = BoatHlfabricDiscoveryExec(tx_ptr, endorserInfo_ptr);
BoatLog_hexasciidump(BOAT_LOG_NORMAL, "invoke result",
- tx_ptr->endorserResponse.http2Res,
- tx_ptr->endorserResponse.httpResLen);
+ tx_ptr->evaluateRes.http2Res,
+ tx_ptr->evaluateRes.httpResLen);
// http2ResData = tx_ptr->endorserResponse.response[0].payload.field_ptr;
// http2Reslen = tx_ptr->endorserResponse.response[0].payload.field_len;
- discoveryResponse = discovery__response__unpack(NULL, tx_ptr->endorserResponse.httpResLen - 5, tx_ptr->endorserResponse.http2Res + 5);
+ discoveryResponse = discovery__response__unpack(NULL, tx_ptr->evaluateRes.httpResLen - 5, tx_ptr->evaluateRes.http2Res + 5);
+ if (tx_ptr->evaluateRes.http2Res != NULL)
+ {
+ BoatFree(tx_ptr->evaluateRes.http2Res);
+ }
+ tx_ptr->evaluateRes.httpResLen =0;
if (discoveryResponse == NULL)
{
BoatLog(BOAT_LOG_CRITICAL, "[http2] discovery__response__unpack failed, maybe a invalid endorser.");
@@ -868,12 +873,6 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr
tx_ptr->endorserResponse.responseCount = 0;
DiscoveryResFree(discoverResult);
- // /* boat catch handle */
- if (tx_ptr->endorserResponse.http2Res != NULL)
- {
- BoatFree(tx_ptr->endorserResponse.http2Res);
- }
- tx_ptr->endorserResponse.httpResLen =0;
return result;
}
