aboutsummaryrefslogtreecommitdiffstats
path: root/test/RPCSession.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-07 22:10:43 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-09 23:40:56 +0800
commit5396c7692b87587dc35c07b2c6239782efd20739 (patch)
treee115f9db036ae30c3d4ad4832ce7667c3da14a31 /test/RPCSession.h
parentb508aac64a1c189367a34e79906a7b2553d0ad15 (diff)
downloaddexon-solidity-5396c7692b87587dc35c07b2c6239782efd20739.tar.gz
dexon-solidity-5396c7692b87587dc35c07b2c6239782efd20739.tar.zst
dexon-solidity-5396c7692b87587dc35c07b2c6239782efd20739.zip
Do not expect a new line, rather buffer up the response in IPC
Diffstat (limited to 'test/RPCSession.h')
-rw-r--r--test/RPCSession.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/RPCSession.h b/test/RPCSession.h
index 5369e1e2..f1aee6a8 100644
--- a/test/RPCSession.h
+++ b/test/RPCSession.h
@@ -35,7 +35,6 @@
#include <boost/test/unit_test.hpp>
#if defined(_WIN32)
-const int c_buffsize = 5120000; //because windows pipe is broken and wont work as in examples. use larger buffer limit to receive whole package in one call
class IPCSocket : public boost::noncopyable
{
public:
@@ -47,7 +46,8 @@ public:
private:
std::string m_path;
- HANDLE m_socket;
+ HANDLE m_socket;
+ TCHAR m_readBuf[512000];
};
#else
class IPCSocket: public boost::noncopyable
@@ -62,6 +62,7 @@ public:
private:
std::string m_path;
int m_socket;
+ char m_readBuf[512000];
};
#endif