diff options
author | chriseth <c@ethdev.com> | 2017-02-25 07:11:26 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-02-25 07:11:26 +0800 |
commit | 4305ecb0e7bca7f64324e0804df9543c4775aa6f (patch) | |
tree | 3c85dd32c0505c37d8593d085bbd2d2cfb96bf07 /test/RPCSession.h | |
parent | d2c79bf8e9400f783bf0feed34065882eae02a68 (diff) | |
download | dexon-solidity-4305ecb0e7bca7f64324e0804df9543c4775aa6f.tar.gz dexon-solidity-4305ecb0e7bca7f64324e0804df9543c4775aa6f.tar.zst dexon-solidity-4305ecb0e7bca7f64324e0804df9543c4775aa6f.zip |
Try reading multiple times from IPC.
Diffstat (limited to 'test/RPCSession.h')
-rw-r--r-- | test/RPCSession.h | 10 |
1 files changed, 8 insertions, 2 deletions
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 <sys/un.h> #endif +#include <json/value.h> + +#include <boost/test/unit_test.hpp> + #include <string> #include <stdio.h> #include <map> -#include <json/value.h> -#include <boost/test/unit_test.hpp> #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 |