mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 09:24:55 +02:00
GH#207: testClosedRequestKeepAlive fails on Mac
This commit is contained in:
parent
460cccddf9
commit
665a531576
@ -253,7 +253,7 @@ void HTTPServerTest::testClosedRequest()
|
|||||||
|
|
||||||
void HTTPServerTest::testIdentityRequestKeepAlive()
|
void HTTPServerTest::testIdentityRequestKeepAlive()
|
||||||
{
|
{
|
||||||
HTTPServer srv(new RequestHandlerFactory);
|
HTTPServer srv(new RequestHandlerFactory, 8008);
|
||||||
srv.start();
|
srv.start();
|
||||||
|
|
||||||
HTTPClientSession cs("localhost", srv.socket().address().port());
|
HTTPClientSession cs("localhost", srv.socket().address().port());
|
||||||
@ -284,13 +284,10 @@ void HTTPServerTest::testIdentityRequestKeepAlive()
|
|||||||
|
|
||||||
void HTTPServerTest::testChunkedRequestKeepAlive()
|
void HTTPServerTest::testChunkedRequestKeepAlive()
|
||||||
{
|
{
|
||||||
ServerSocket svs(0);
|
HTTPServer srv(new RequestHandlerFactory, 8009);
|
||||||
HTTPServerParams* pParams = new HTTPServerParams;
|
|
||||||
pParams->setKeepAlive(true);
|
|
||||||
HTTPServer srv(new RequestHandlerFactory, svs, pParams);
|
|
||||||
srv.start();
|
srv.start();
|
||||||
|
|
||||||
HTTPClientSession cs("localhost", svs.address().port());
|
HTTPClientSession cs("localhost", srv.socket().address().port());
|
||||||
cs.setKeepAlive(true);
|
cs.setKeepAlive(true);
|
||||||
std::string body(5000, 'x');
|
std::string body(5000, 'x');
|
||||||
HTTPRequest request("POST", "/echoBody", HTTPMessage::HTTP_1_1);
|
HTTPRequest request("POST", "/echoBody", HTTPMessage::HTTP_1_1);
|
||||||
@ -319,10 +316,10 @@ void HTTPServerTest::testChunkedRequestKeepAlive()
|
|||||||
|
|
||||||
void HTTPServerTest::testClosedRequestKeepAlive()
|
void HTTPServerTest::testClosedRequestKeepAlive()
|
||||||
{
|
{
|
||||||
HTTPServer srv(new RequestHandlerFactory);
|
HTTPServer srv(new RequestHandlerFactory, 8010);
|
||||||
srv.start();
|
srv.start();
|
||||||
|
|
||||||
HTTPClientSession cs("localhost", srv.socket().address().port());//svs.address().port());
|
HTTPClientSession cs("localhost", srv.socket().address().port());
|
||||||
std::string body(5000, 'x');
|
std::string body(5000, 'x');
|
||||||
HTTPRequest request("POST", "/echoBody");
|
HTTPRequest request("POST", "/echoBody");
|
||||||
request.setContentType("text/plain");
|
request.setContentType("text/plain");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user