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

Method Init

src/brpc/policy/http2_rpc_protocol.cpp:363–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363int H2Context::Init() {
364 if (_pending_streams.init(64, 70) != 0) {
365 LOG(WARNING) << "Fail to init _pending_streams";
366 }
367 if (_hpacker.Init(_unack_local_settings.header_table_size) != 0) {
368 LOG(WARNING) << "Fail to init _hpacker";
369 }
370 return 0;
371}
372
373H2StreamContext* H2Context::RemoveStreamAndDeferWU(int stream_id) {
374 H2StreamContext* sctx = NULL;

Callers 12

ListDiscoveryNodesFunction · 0.45
NewDiscoveryChannelFunction · 0.45
DoRenewMethod · 0.45
DoCancelMethod · 0.45
OnHeadersMethod · 0.45
OnContinuationMethod · 0.45
OnDataMethod · 0.45
ParseH2MessageFunction · 0.45
AppendAndDestroySelfMethod · 0.45
ConnectMethod · 0.45
GetServersMethod · 0.45
GetServersMethod · 0.45

Calls 2

initMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected