|
|
|
@ -12,6 +12,7 @@
|
|
|
|
#include "td/actor/actor.h"
|
|
|
|
#include "td/actor/actor.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "td/utils/BufferedFd.h"
|
|
|
|
#include "td/utils/BufferedFd.h"
|
|
|
|
|
|
|
|
#include "td/utils/common.h"
|
|
|
|
#include "td/utils/FloodControlFast.h"
|
|
|
|
#include "td/utils/FloodControlFast.h"
|
|
|
|
#include "td/utils/format.h"
|
|
|
|
#include "td/utils/format.h"
|
|
|
|
#include "td/utils/logging.h"
|
|
|
|
#include "td/utils/logging.h"
|
|
|
|
@ -47,7 +48,7 @@ class HttpServer final : public td::TcpListener::Callback {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
flood_control_.add_event(now);
|
|
|
|
flood_control_.add_event(now);
|
|
|
|
LOG(INFO) << "Create tcp listener " << td::tag("address", ip_address_) << td::tag("port", port_);
|
|
|
|
LOG(INFO) << "Create TCP listener " << td::tag("address", ip_address_) << td::tag("port", port_);
|
|
|
|
listener_ = td::create_actor<td::TcpListener>(
|
|
|
|
listener_ = td::create_actor<td::TcpListener>(
|
|
|
|
PSLICE() << "TcpListener" << td::tag("address", ip_address_) << td::tag("port", port_), port_,
|
|
|
|
PSLICE() << "TcpListener" << td::tag("address", ip_address_) << td::tag("port", port_), port_,
|
|
|
|
actor_shared(this, 1), ip_address_);
|
|
|
|
actor_shared(this, 1), ip_address_);
|
|
|
|
|