| 242 | } |
| 243 | |
| 244 | bool ThriftServer::ThriftServerEventProcessor::IsIdleContext(void* context) { |
| 245 | __connection_context__ = reinterpret_cast<ConnectionContext*>(context); |
| 246 | if (thrift_server_->connection_handler_ != nullptr) { |
| 247 | return thrift_server_->connection_handler_->IsIdleConnection(*__connection_context__); |
| 248 | } |
| 249 | return false; |
| 250 | } |
| 251 | |
| 252 | void ThriftServer::ThriftServerEventProcessor::deleteContext(void* context, |
| 253 | std::shared_ptr<TProtocol> input, std::shared_ptr<TProtocol> output) { |