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

Method mutable_auth_context

src/brpc/socket.cpp:2161–2170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2159}
2160
2161AuthContext* Socket::mutable_auth_context() {
2162 if (_auth_context != NULL) {
2163 LOG(FATAL) << "Impossible! This function is supposed to be called "
2164 "only once when verification succeeds in server side";
2165 return NULL;
2166 }
2167 _auth_context = new(std::nothrow) AuthContext();
2168 CHECK(_auth_context);
2169 return _auth_context;
2170}
2171
2172int Socket::OnInputEvent(void* user_data, uint32_t events,
2173 const bthread_attr_t& thread_attr) {

Callers 4

VerifyMyRequestFunction · 0.80
VerifyHttpRequestFunction · 0.80
VerifyRpcRequestFunction · 0.80
VerifyHuluRequestFunction · 0.80

Calls

no outgoing calls

Tested by 1

VerifyMyRequestFunction · 0.64