Пример #1
0
void ServiceThread::threadRun() {
  Logger::Info("Service thread %s started", m_url.c_str());
  s_service_threads.set(this);

  Hdf hdf;
  hdf["get"] = 1;
  hdf["url"] = m_url;
  hdf["remote_host"] = RuntimeOption::ServerIP;

  ReplayTransport rt;
  rt.replayInput(hdf);
  HttpRequestHandler handler;
  handler.disablePathTranslation();
  handler.handleRequest(&rt);

  Logger::Info("Service thread %s stopped", m_url.c_str());
}