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());

View File

@ -210,6 +210,8 @@ void WebSocketTest::testWebSocketLarge()
HTTPRequest request(HTTPRequest::HTTP_GET, "/ws");
HTTPResponse response;
WebSocket ws(cs, request, response);
ws.setSendBufferSize(msgSize);
ws.setReceiveBufferSize(msgSize);
std::string payload(msgSize, 'x');
SocketStream sstr(ws);
sstr << payload;

View File

@ -97,6 +97,15 @@ AAAIntroduction
- fixed GH #212: JSONConfiguration was missing from the vs90 project(Patrice Tarabbia)
- fixed GH #220: add qualifiers for FPEnvironment in C99 (Lucas Clemente)
!!Incompatible Changes and Possible Transition Issues
- Dynamic::Var: comparison of two empty objects now returns true
- WinCE does not build in this release; this will be fixed in a later release
- Please note that 1.5.x releases are development releases and not considered stable.
Interfaces may change, and backwards compatibility with the stable 1.4 release
series is not guaranteed. There may also be some rough edges.
The next stable release incorporating 1.5 features will be 1.6.
!!!Release 1.5.1