aboutsummaryrefslogtreecommitdiffstats
path: root/test/RPCSession.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-02-10 17:37:43 +0800
committerGitHub <noreply@github.com>2017-02-10 17:37:43 +0800
commitaf8e31b023723bfc6baa224931ef6570cd8d9a32 (patch)
treef3d54f05cf0f03e81772a6ac96a4c9233f3fb51f /test/RPCSession.h
parenta0bc064d5299219fe454ed639a392fc2059b8b78 (diff)
parent95f8c5bcdb69ab4cba835f8bc06ab89da4768db8 (diff)
downloaddexon-solidity-af8e31b023723bfc6baa224931ef6570cd8d9a32.tar.gz
dexon-solidity-af8e31b023723bfc6baa224931ef6570cd8d9a32.tar.zst
dexon-solidity-af8e31b023723bfc6baa224931ef6570cd8d9a32.zip
Merge pull request #1669 from ethereum/ipc-cleanup
Don't rely on new lines in IPC RPC (soltest)
Diffstat (limited to 'test/RPCSession.h')
-rw-r--r--test/RPCSession.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/RPCSession.h b/test/RPCSession.h
index fc166b99..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
@@ -55,14 +55,14 @@ class IPCSocket: public boost::noncopyable
public:
IPCSocket(std::string const& _path);
std::string sendRequest(std::string const& _req);
- ~IPCSocket() { close(m_socket); fclose(m_fp); }
+ ~IPCSocket() { close(m_socket); }
std::string const& path() const { return m_path; }
private:
- FILE *m_fp;
std::string m_path;
int m_socket;
+ char m_readBuf[512000];
};
#endif