aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/main/session.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-13 09:12:17 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-13 09:12:17 +0300
commit38faa173c587606c9cfb0e3fa8fbc77c80617b9e (patch)
tree97ca22e6cc6381df2de4d2bc8937de29f6eaa17f /server/main/session.hpp
parentstress_test.py: fix for 3.6 (diff)
downloadmath-server-38faa173c587606c9cfb0e3fa8fbc77c80617b9e.tar.gz
math-server-38faa173c587606c9cfb0e3fa8fbc77c80617b9e.zip
don't let the write buffer corrupt
Diffstat (limited to 'server/main/session.hpp')
-rw-r--r--server/main/session.hpp2
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);