From 4305ecb0e7bca7f64324e0804df9543c4775aa6f Mon Sep 17 00:00:00 2001 From: chriseth Date: Sat, 25 Feb 2017 00:11:26 +0100 Subject: Try reading multiple times from IPC. --- test/RPCSession.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/RPCSession.h') diff --git a/test/RPCSession.h b/test/RPCSession.h index 414db323..843036e1 100644 --- a/test/RPCSession.h +++ b/test/RPCSession.h @@ -28,11 +28,13 @@ #include #endif +#include + +#include + #include #include #include -#include -#include #if defined(_WIN32) class IPCSocket : public boost::noncopyable @@ -60,8 +62,12 @@ public: std::string const& path() const { return m_path; } private: + std::string m_path; int m_socket; + /// Socket read timeout in milliseconds. Needs to be large because the key generation routine + /// might take long. + unsigned static constexpr m_readTimeOutMS = 15000; char m_readBuf[512000]; }; #endif -- cgit