| 113 | } |
| 114 | |
| 115 | void 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 | |
| 125 | int IORoutine::run() { |
| 126 | co_enable_hook_sys(); |