MCPcopy Create free account
hub / github.com/apache/brpc / OnContinuation

Method OnContinuation

src/brpc/policy/http2_rpc_protocol.cpp:655–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655H2ParseResult H2Context::OnContinuation(
656 butil::IOBufBytesIterator& it, const H2FrameHead& frame_head) {
657 H2StreamContext* sctx = FindStream(frame_head.stream_id);
658 if (sctx == NULL) {
659 if (is_client_side()) {
660 RPC_VLOG << "Fail to find stream_id=" << frame_head.stream_id;
661 // Ignore the message without closing the socket.
662 H2StreamContext tmp_sctx(false);
663 tmp_sctx.Init(this, frame_head.stream_id);
664 tmp_sctx.OnContinuation(it, frame_head);
665 return MakeH2Message(NULL);
666 } else {
667 LOG(ERROR) << "Fail to find stream_id=" << frame_head.stream_id;
668 return MakeH2Error(H2_PROTOCOL_ERROR);
669 }
670 }
671 return sctx->OnContinuation(it, frame_head);
672}
673
674H2ParseResult H2StreamContext::OnContinuation(
675 butil::IOBufBytesIterator& it, const H2FrameHead& frame_head) {

Callers

nothing calls this directly

Calls 7

MakeH2MessageFunction · 0.85
MakeH2ErrorFunction · 0.85
append_and_forwardMethod · 0.80
bytes_leftMethod · 0.80
InitMethod · 0.45
sizeMethod · 0.45
pop_frontMethod · 0.45

Tested by

no test coverage detected