diff --git a/moon-src/core/network/stream_connection.hpp b/moon-src/core/network/stream_connection.hpp index 9d7ef2090..46667f97c 100644 --- a/moon-src/core/network/stream_connection.hpp +++ b/moon-src/core/network/stream_connection.hpp @@ -12,15 +12,10 @@ namespace moon template explicit stream_connection(Args&&... args) :base_connection_t(std::forward(args)...) + ,response_(8192,0) { } - void start(bool accepted, const std::string& payload) override - { - base_connection_t::start(accepted, payload); - response_ = message{ 8192, 0 }; - } - void read(size_t n, std::string_view delim, int32_t sessionid) override { if (!is_open() || sessionid_ != 0)