allow to set buffer size for server

This commit is contained in:
Chunting Gu
2020-12-21 17:53:36 +08:00
parent ca83869912
commit c2f3a87cd2
7 changed files with 26 additions and 12 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ using ConnectionPtr = std::shared_ptr<Connection>;
class Connection : public std::enable_shared_from_this<Connection> {
public:
Connection(boost::asio::ip::tcp::socket socket, ConnectionPool* pool,
Queue<ConnectionPtr>* queue, ViewMatcher&& view_matcher);
Queue<ConnectionPtr>* queue, ViewMatcher&& view_matcher,
std::size_t buffer_size);
~Connection() = default;