network test socket buffer size fix for VS2010/Win7

This commit is contained in:
aleks-f
2013-06-16 18:26:39 -05:00
parent e3231b346b
commit b1161bdb1e
3 changed files with 13 additions and 0 deletions

View File

@@ -94,6 +94,8 @@ void SocketStreamTest::testLargeStreamEcho()
StreamSocket ss;
ss.connect(SocketAddress("localhost", echoServer.port()));
SocketStream str(ss);
ss.setSendBufferSize(msgSize);
ss.setReceiveBufferSize(msgSize);
std::string payload(msgSize, 'x');
str << payload;
assert (str.good());