Implemented socket message monitor infrastructure (#48)

* Completed adding message threshold

* Removed unused cpp file

* Completed review suggestions

* Added default value check

* Cleanup.

* Added header definitions for socket monitor
This commit is contained in:
Ravidu Lashan
2019-10-30 14:16:22 +05:30
committed by GitHub
parent eeadd1d744
commit 2ba739c984
12 changed files with 291 additions and 34 deletions

View File

@@ -270,6 +270,7 @@ void start_listening()
auto address = net::ip::make_address(conf::cfg.listenip);
sess_opts.max_message_size = conf::cfg.pubmaxsize;
sess_opts.max_bytes_per_minute = conf::cfg.pubmaxcpm;
std::make_shared<sock::socket_server<user_outbound_message>>(
ioc,