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

Function SendStreamRst

src/brpc/policy/streaming_rpc_protocol.cpp:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void SendStreamRst(Socket *sock, int64_t remote_stream_id) {
140 CHECK(sock != NULL);
141 StreamFrameMeta fm;
142 fm.set_stream_id(remote_stream_id);
143 fm.set_frame_type(FRAME_TYPE_RST);
144 butil::IOBuf out;
145 PackStreamMessage(&out, fm, NULL);
146 Socket::WriteOptions wopt;
147 wopt.ignore_eovercrowded = true;
148 sock->Write(&out, &wopt);
149}
150
151void SendStreamClose(Socket *sock, int64_t remote_stream_id,
152 int64_t source_stream_id) {

Callers 4

TEST_FFunction · 0.85
ParseStreamingMessageFunction · 0.85
ProcessRpcResponseFunction · 0.85

Calls 2

PackStreamMessageFunction · 0.85
WriteMethod · 0.45

Tested by 1

TEST_FFunction · 0.68