diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-06 11:09:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-06 11:09:16 +0100 |
| commit | ebc29bddd5cbc5cad23cc9b1095d842f55ece5e0 (patch) | |
| tree | 7095d6d7cd9df042f80eb2952b666b57afc8cdc1 /src/lib/server.h | |
| parent | 4d3d20687c9e334b29c8a2821e0646fb9166ab3f (diff) | |
Try to prevent encode server test crashing in valgrind.
Diffstat (limited to 'src/lib/server.h')
| -rw-r--r-- | src/lib/server.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
