Try to prevent encode server test crashing in valgrind.
[dcpomatic.git] / src / lib / server.h
index 7952275232705e8b9d4c943fc855eeadf1aba4a2..59722274ee17b186d50a34f35df91182d7fbd411 100644 (file)
@@ -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