You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/03/03 01:24:01 UTC

[GitHub] [incubator-brpc] cstarc commented on issue #1348: 附件大小限制问题,当大小大于uint32, 会有问题

cstarc commented on issue #1348:
URL: https://github.com/apache/incubator-brpc/issues/1348#issuecomment-789352171


   PackRpcRequest
     
      const size_t req_size = request_body.length(); 
       **const size_t attached_size** = cntl->request_attachment().length();
       if (attached_size) {
           **meta.set_attachment_size(attached_size);**
       }
       Span* span = accessor.span();
       if (span) {
           request_meta->set_trace_id(span->trace_id());
           request_meta->set_span_id(span->span_id());
           request_meta->set_parent_span_id(span->parent_span_id());
       }
   
       SerializeRpcHeaderAndMeta(req_buf, meta, req_size + attached_size);
       req_buf->append(request_body);
       **if (attached_size) {
           req_buf->append(cntl->request_attachment());**
       }
   
   大小不一致


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org