From ebc29bddd5cbc5cad23cc9b1095d842f55ece5e0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 6 Sep 2018 11:09:16 +0100 Subject: Try to prevent encode server test crashing in valgrind. --- src/lib/server.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/server.h') diff --git a/src/lib/server.h b/src/lib/server.h index 795227523..59722274e 100644 --- a/src/lib/server.h +++ b/src/lib/server.h @@ -31,7 +31,7 @@ class Socket; class Server : public boost::noncopyable { public: - explicit Server (int port); + explicit Server (int port, int timeout = 30); virtual ~Server (); virtual void run (); @@ -49,6 +49,7 @@ private: boost::asio::io_service _io_service; boost::asio::ip::tcp::acceptor _acceptor; + int _timeout; }; #endif -- cgit v1.2.3