| 111 | } |
| 112 | |
| 113 | void onClientMessage(const TcpConnectionPtr& conn, Buffer* buf, Timestamp) |
| 114 | { |
| 115 | if (!conn->getContext().empty()) |
| 116 | { |
| 117 | int id = boost::any_cast<int>(conn->getContext()); |
| 118 | sendBackendBuffer(id, buf); |
| 119 | } |
| 120 | else |
| 121 | { |
| 122 | buf->retrieveAll(); |
| 123 | // FIXME: error handling |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | void sendBackendBuffer(int id, Buffer* buf) |
| 128 | { |
nothing calls this directly
no test coverage detected