static */
| 142 | } |
| 143 | |
| 144 | /* static */ void TEvhttpClientChannel::response(struct evhttp_request* req, void* arg) { |
| 145 | auto* self = (TEvhttpClientChannel*)arg; |
| 146 | try { |
| 147 | self->finish(req); |
| 148 | } catch (std::exception& e) { |
| 149 | // don't propagate a C++ exception in C code (e.g. libevent) |
| 150 | std::cerr << "TEvhttpClientChannel::response exception thrown (ignored): " << e.what() << '\n'; |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | } // apache::thrift::async |