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

Function VerifySofaRequest

src/brpc/policy/sofa_pbrpc_protocol.cpp:492–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492bool VerifySofaRequest(const InputMessageBase* msg_base) {
493 const Server* server = static_cast<const Server*>(msg_base->arg());
494 if (server->options().auth) {
495 LOG(WARNING) << "sofa-pbrpc does not support authentication";
496 return false;
497 }
498 return true;
499}
500
501void ProcessSofaResponse(InputMessageBase* msg_base) {
502 const int64_t start_parse_us = butil::cpuwide_time_us();

Callers 1

VerifyMessageMethod · 0.85

Calls 2

argMethod · 0.80
optionsMethod · 0.80

Tested by 1

VerifyMessageMethod · 0.68