MCPcopy Create free account
hub / github.com/Tencent/phxsql / SetClientFD

Method SetClientFD

phxsqlproxy/io_routine.cpp:115–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void IORoutine::SetClientFD(int fd) {
116 ClearAll();
117 client_fd_ = fd;
118 req_uniq_id_ = ((uint64_t)(random_engine()) << 32) | random_engine();
119 io_router_->SetReqUniqID(req_uniq_id_);
120 io_channel_->SetReqUniqID(req_uniq_id_);
121 proxy_protocol_handler_->SetReqUniqID(req_uniq_id_);
122 LOG_DEBUG("receive connect, client_fd [%d]", fd);
123}
124
125int IORoutine::run() {
126 co_enable_hook_sys();

Callers 1

runMethod · 0.80

Calls 1

SetReqUniqIDMethod · 0.45

Tested by

no test coverage detected