diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-13 09:12:17 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-13 09:12:17 +0300 |
commit | 38faa173c587606c9cfb0e3fa8fbc77c80617b9e (patch) | |
tree | 97ca22e6cc6381df2de4d2bc8937de29f6eaa17f /server/main/session.hpp | |
parent | stress_test.py: fix for 3.6 (diff) | |
download | math-server-38faa173c587606c9cfb0e3fa8fbc77c80617b9e.tar.gz math-server-38faa173c587606c9cfb0e3fa8fbc77c80617b9e.zip |
don't let the write buffer corrupt
Diffstat (limited to '')
-rw-r--r-- | server/main/session.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/main/session.hpp b/server/main/session.hpp index ace3755..98f28dd 100644 --- a/server/main/session.hpp +++ b/server/main/session.hpp @@ -25,7 +25,7 @@ private: void close(); void read(); - void write(std::string); + void write(const std::string&); void handle_read(const boost::system::error_code&, std::size_t); void handle_write(const boost::system::error_code&, std::size_t); |